Checklist: How to Clean Up AI Slop in Your Codebase

blelbach · x · 2026-09-01

A checklist of metrics to evaluate and clean up code quality, addressing potential mess from AI-generated code. Suggested standards include: Cyclomatic Complexity < 22, Cognitive Complexity < 22, Halstead Difficulty < 80, Lines of Code per file < 500, Test Coverage 100%, CRAP < 25, zero surviving mutants, zero dead/redundant code, and zero 'any' or 'unknown' types.

Original post →

More from coding & agent

coding & agent channel →