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-reek-6

v0.2.1

Published

Reek adapter — CLI-mode Ruby code smell detector

Downloads

192

Readme

@codacy/tools-reek-6

Table of Contents


Overview

Ruby code smell detector using the Reek gem. Uses the CLI execution strategy -- spawns reek --format json via spawnTool() and parses its JSON output.

| Property | Value | | ------------- | -------------------------------------- | | Tool ID | Reek | | Codacy UUID | ec8f6265-18e8-478a-a295-7a4c09fa2171 | | Strategy | CLI | | Languages | Ruby | | Binary | reek (installed via gem install) | | File patterns | **/*.rb |

Updating patterns

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

# Commit the result
git add src/patterns.json

The prefetch script calls packages/tools/scripts/fetch-patterns.mjs with the tool UUID to download pattern metadata (IDs, categories, severity levels) from the Codacy API.

Pattern IDs are bare smell type names (no prefix): FeatureEnvy, TooManyStatements, UncommunicativeMethodName, etc.

Updating the Reek version

  1. Update REEK_VERSION in src/adapter.ts
  2. Run pnpm prefetch to check for new/removed smells
  3. Run pnpm test to verify compatibility
  4. If the major version changes, create a new adapter package (reek-7/)

Development

pnpm build    # Build with tsup
pnpm test     # Run tests (requires ruby + reek in PATH for integration tests)

To install reek locally for testing:

gem install reek -v 6.5.0

Notes for maintainers

  • Reek requires Ruby >= 2.7 as a runtime. The adapter uses ensureRuby() to download a portable Ruby if no system Ruby is found.
  • Gems are installed in an isolated directory at ~/.codacy/runtimes/reek-6/gems/ via GEM_HOME/GEM_PATH environment variables.
  • Output format is a flat JSON array of smell objects, each with smell_type, source, lines[], message, and context.
  • The lines field is an array -- a single smell can span multiple lines. The adapter uses lines[0] as the primary line number.
  • Exit codes: 0 = no smells, 2 = smells found (both success), 1 = runtime error.
  • Pattern IDs in patterns.json have no prefix -- they are bare smell type names matching smell_type from Reek's JSON output.
  • Pattern filtering is post-hoc: Reek runs against all provided files, then output is filtered by the enabled patterns set.
  • Config file detection supports .reek.yml and config.reek. When a local config is found and useLocalConfigurationFile is true, it is passed via --config <path>.