npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@codacy/tools-revive-1

v0.3.5

Published

Revive adapter — CLI-mode Go linter

Readme

@codacy/tools-revive-1

Table of Contents


Overview

Go linter using the Revive binary. Uses the CLI execution strategy — spawns revive via spawnTool() and parses its JSON output. Revive is a fast, configurable, extensible linter for Go that provides a framework for development of custom rules.

| Property | Value | | ------------- | -------------------------------------- | | Tool ID | Revive | | Codacy UUID | bd81d1f4-1406-402d-9181-1274ee09f1aa | | Strategy | CLI | | Languages | Go | | Binary | revive | | File patterns | **/*.go | | Pattern count | 96 |

Updating patterns

# Re-fetch pattern metadata from the Codacy API
pnpm prefetch

# Commit the result
git add src/patterns.json

Pattern IDs follow the format Revive_exported, Revive_blank-imports, Revive_cyclomatic, etc. The Revive_ prefix matches the Codacy API prefix exactly.

Updating the Revive version

  1. Update preferredVersion in src/adapter.ts
  2. Update the download URL template if the release asset naming changed
  3. Run pnpm prefetch to check for new/removed rules
  4. Run pnpm test to verify compatibility
  5. If the major version changes, create a new adapter package (revive-2/)

Development

pnpm build    # Build with tsup
pnpm test     # Run tests (mocked tests always run; integration tests require revive in PATH)

To install revive locally for integration tests:

go install github.com/mgechev/[email protected]

Notes for maintainers

  • Revive is distributed as a pre-built binary from GitHub releases (tar.gz archive per platform).
  • The binary is downloaded via downloadAndExtract() since it comes as a tar.gz.
  • Go runtime is an optional dependency needed for type-checked rules. The adapter downloads Go via ensureGo() during install() and uses buildGoEnv() / goModDownload() during analyze().
  • JSON output via -formatter json.
  • Exit code 0 means no issues, exit code 1 means issues were found (normal), exit code 2+ means a genuine error.
  • Config generation writes TOML syntax ([rule.{name}] sections) to .codacy/generated/revive.toml.
  • Pattern parameters are emitted as arguments = [value] in the generated TOML.
  • The confidence = 0.0 setting in generated configs ensures all findings are reported regardless of confidence level.
  • Platform mapping: darwin-arm64 -> darwin_arm64, darwin-x64 -> darwin_amd64, linux-x64 -> linux_amd64, linux-arm64 -> linux_arm64.