Skip to content
Fallow home
All docs pages

Docs home

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

FactValue
Issue typecoverage-intelligence-refactor
Rule id in SARIF outputfallow/coverage-intelligence-refactor
Commandfallow health
Fixable with fallow fixNo

Note. Produced by fallow coverage analyze.