no-restated-comment
Flag short standalone comments that repeat the adjacent statement's identifiers.
Why
A comment that only repeats code adds no context and can become stale independently.
Fix
Remove a genuine restatement; retain conditions, constraints, rationale, and information absent from the statement.
Examples
// Serialize keyconst key = serialize(input);// Serialize key only after validation.const key = serialize(input);