Appearance
Code nobody needs: one of the ways AI coding agents bloat software, from lessloc's pattern catalog. lessloc catches it as commented-out and refuses it before it lands.
commented-out
The standards that call it a bad practice: CWE-1085; Clean Code C5; Sonar S125.
lessloc catches it as commented-out and refuses it before it lands.
The other patterns in Code nobody needs:
mode-flag
single-impl
wrapper
unused
history
stub
placeholder
debug-leftover
demo-code
new-folder
simpler
single-use
todo
shortcut:
Commented-out code
Code nobody needs: one of the ways AI coding agents bloat software, from lessloc's pattern catalog. lessloc catches it as
commented-outand refuses it before it lands.What makes commented-out code a bad practice?
The standards that call it a bad practice: CWE-1085; Clean Code C5; Sonar S125.
What does lessloc do about commented-out code?
lessloc catches it as
commented-outand refuses it before it lands.commented-out(tier 0): Commented-out code. Refused before it lands.Related patterns
The other patterns in Code nobody needs:
mode-flag.single-impl.wrapper.unused(ruff adds unused variables).history.stub; it asks to finish the code or to tell the user what is not real yet.placeholderand refuses it before it lands.debug-leftover.demo-codeandnew-folder.simpler.single-use.todo; it asks to finish the work, or to record known debt asshortcut:and tell the user.