← rule catalog
duplication.within-file
heuristicunmeasuredseverity: low
A behavioral claim we believe and have not measured. Labeled unmeasured in every reporter line, excluded from the chaff score, and never fails a build by default.
Claim
One file restates the same section twice (normalized 5-gram shingle similarity ≥ 0.8).
Rationale
Within-file repetition is usually an append-instead-of-edit scar. Believed harmful; not yet measured.
Fix
Merge the two statements into the earlier one and delete the later copy.
chaff explain duplication.within-file: same registry, offline, from the CLI.