Skip to content

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-out and 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-out and refuses it before it lands.

  • commented-out (tier 0): Commented-out code. Refused before it lands.

The other patterns in Code nobody needs:

Released under the Apache-2.0 license. · llms.txt