Coverage intelligence refactor
What a coverage-intelligence-refactor finding of fallow health means, why it matters and how to fix it.
What it reports
Hot covered code has high CRAP and should be refactored carefully.
Runtime coverage explains how fallow finds it.
Why it matters
Coverage intelligence found hot production code that is covered by tests but still has high CRAP. Refactor carefully while preserving behavior.
Example
calculateTax runs often in production and has 70% or more test coverage, but its CRAP score is above the limit.
Fix
Refactor the function in small steps, and run the tests after each step.
Facts
| Fact | Value |
|---|---|
| Issue type | coverage-intelligence-refactor |
| Rule id in SARIF output | fallow/coverage-intelligence-refactor |
| Command | fallow health |
Fixable with fallow fix | No |
Note. Produced by fallow coverage analyze.