Skip to content

A file that keeps growing ​

Code longer than it needs to be: one of the ways AI coding agents bloat software, from lessloc's pattern catalog. lessloc catches it as swollen-file.

What makes a file that keeps growing a bad practice? ​

The standard that calls it a bad practice: CWE-1080 Source Code File with Excessive Number of Lines of Code.

What does lessloc do about a file that keeps growing? ​

lessloc catches it as swollen-file.

  • swollen-file (tier 2): A file that grew by 150 or more lines and now has over 800 code lines.

The other patterns in Code longer than it needs to be:

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