AdRoll/rebar3_hank
69.4
Adequate · 15 November 2026
2.2k
lines of production code
Erlang
primary language
5
measurements over time
What this system is
Features
Initial release of rebar3\_hank, the Erlang dead code cleaner
This change introduces the rebar3\_hank plugin, an Erlang static analysis tool that detects dead code such as unused macros, records, callbacks, and function arguments. The repository is initialized with a rebar3 configuration requiring OTP 27 and katana\_code 2.5.1, along with documentation, a code of conduct, and configuration for linting, spell-checking, and formatting.
(repo-wide) · high confidence
Introduce rebar3 plugin for Erlang dead code detection
Adds the \rebar3\_hank\ plugin, providing a new \rebar3 hank\ command that scans Erlang source files for dead code. The tool analyzes the codebase using configurable rules, supports ignoring specific files or rules via configuration, and warns users about unused ignore directives to keep configuration clean.
src · high confidence
New static analysis rules for unused code and configuration
This release introduces several new rules to detect unused or redundant code and configuration: \single\_use\_hrls\ flags header files included by only one module; \single\_use\_hrl\_attrs\ detects \-define\ and \-record\ attributes in header files used by only one module; \unused\_hrls\ identifies header files that are never included; \unused\_macros\ finds macro definitions that are never used; \unused\_record\_fields\ detects record fields that are never accessed; \unused\_callbacks\ warns about behavior callbacks defined but not called within the module; \unused\_configuration\_options\ finds options in \.config\ and \.app.src\ files that are not referenced in the code; and \unnecessary\_function\_arguments\ identifies function arguments that are consistently ignored across all clauses. These rules help clean up codebases by highlighting dead code and redundant definitions.
src/rules · high confidence
Test coverage
1 commit adding/updating tests in test/files/single\_use\_hrls, test/files/unused\_hrls; Added test fixtures for configuration parsing edge cases; Added test fixtures for single-use HRL attributes; Added test fixtures for the unnecessary\_function\_arguments rule; Added test suite for unused record field detection; Expanded test coverage for Hank analysis rules and ignore behaviors.
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 70 → 69 (-0.7)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 76 → 75 (-1.0)
- Architecture 100 → 100 (+0.0)
- Maturity 57 → 57 (+0.0)
- Readiness 82 → 82 (+0.0)
- Security 92 → 87 (-5.3)
New (4)
- Edited copy of a member (13 corresponding lines) (src/rules/single_use_hrls.erl)
- Edited copy of a member (7 corresponding lines) (src/rules/single_use_hrls.erl)
- Edited copy of a member (9 corresponding lines) (src/rules/unused_record_fields.erl)
- Repeated repair: src/hank_utils.erl (src/hank_utils.erl)
Changes since last survey
- 1 commits — 0 feature/other, 1 fixes
By area
- (root) — 1 commit
Notable commits
- fix: Fix Unicode macro names in spellcheck (#241)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
AdRoll/rebar3_hank was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit c568ec2124828b14c72b879f759dfe2f5e4bfb6b — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.