Skip to content

file-length-limit

Default severity: note

Limits source-file length. The built-in maximum is 500 lines.

For example, with max-lines = 5, a six-line source file is reported while a five-line file is accepted.

package example
const first = 1
const second = 2
const third = 3
const fourth = 4
package example
const first = 1
const second = 2
const third = 3
[checks.rules.file-length-limit]
max-lines = 800

Set max-lines = 0 to disable this check explicitly.