Skip to content

Comment blocks and comment-heavy changes ​

Comments and text: one of the ways AI coding agents bloat software, from lessloc's pattern catalog. lessloc catches it as comment-block and comment-density.

What makes comment blocks and comment-heavy changes a bad practice? ​

The standard that calls it a bad practice: Clean Code: Too Much Information.

What does lessloc do about comment blocks and comment-heavy changes? ​

lessloc catches it as comment-block and comment-density.

  • comment-block (tier 3): A comment block of 6 or more lines.
  • comment-density (tier 3): Comments make up more than maxCommentRatio of a file's added lines.

The other patterns in Comments and text:

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