Skip to content

VBC-084: long-line-limit

warning

Category: clean-code
Analysis: Regex (line by line)
File types: .js, .ts, .py, .go, .astro
Scope: the whole file, with no scope filtering
Tags: clean-code

What it reports

Line is too long ({count} characters). Consider wrapping it. Max recommended: 120.

Flagged

js
const message = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";

Not flagged

js
const message = "short";

Pattern

regex
^.{120,}$

Released under the MIT License.