redline
LowAI tellsfiller-comment

Filler comment

Filler comment. A comment that labels instead of explaining (// Imports).

This is how the comment reads inline, under the flagged line.

Why it matters

'This function is responsible for…' and section labels like // Imports restate the structure a reader can already see. Models add them by reflex.

What to do

Delete it. Keep comments for the why: a constraint, a trade-off, a link.

Examples

Flagged
// Helper functions
// This function is responsible for formatting dates
function fmt(d) {}
Better
function formatDate(d) {}

What it catches

It reads a pattern on each line, aware of strings and comments. Languages: Any file. Scope: All files. These cases are the rule's own tests: the first set must be flagged and the second must not.

Flagged

// Imports
import a from 'a';
// This function is responsible for parsing
function p() {}

Left alone

// Dates arrive in UTC; render them in the user's zone.
function fmt() {}

Research

Comments and docstrings that repeat the next line, the function name or the structure ("Step 1", "This function handles"). The reader learns nothing, and the comment drifts out of date when the code changes.

Turn it off or change it

In a config file for the CLI, or in the API's rules field:

{
  "rules": {
    "disable": [
      "filler-comment"
    ],
    "severity": {
      "filler-comment": "medium"
    }
  }
}

Read the source or report a false positive.