v0.2.0 - The Nose Knows π
π Keela v0.2.0 - The Nose Knows
Meet Keela β a code-sniffing springer spaniel who finds the unused code that other tools miss.
Named after the famous "CSI dog" who could detect microscopic traces that eluded forensic teams, Keela brings that same nose to your Ruby codebase.
What Can Keela Sniff Out?
π§ Methods - def unused_method that nobody calls
π Scopes - scope :inactive, -> { } that nothing queries
π’ Constants - UNUSED_CONSTANT = "value" gathering dust (#2)
π Delegations - delegate :unused_method, to: :target going nowhere (#4)
π Attributes - attr_accessor :unused_attr that nothing reads or writes (#5)
π I18n Keys (beta) - Translation keys in your locale YAML that no view uses (#16)
How She Works
Baseline mode for CI β Keela tracks known unused code and only barks at new dead code:
keela --update-baseline # First run: establish the baseline
keela # CI runs: fail on new unused codeReport mode for exploration β See everything:
keela --reportConfiguration
π Config file - Drop a keela.yml in your project root (#11)
π― Include/exclude patterns - Tell Keela where to sniff (#12, #14)
# keela.yml
exclude_patterns:
- "vendor/**/*"
include_patterns:
- "engines/**/*.rb"ποΈ Multi-type scanning - Hunt for specific scents (#18)
keela --type methods,scopes,constantsπ JSON output - Machine-readable findings for your pipeline (#19)
keela --format jsonInstallation
gem install keelaFull Changelog: v0.1.0...v0.2.0
Good girl, Keela. Now go find that dead code! π¦΄