Skip to content

tiagoporto/limitlines

Repository files navigation

limit lines

Release Node Downloads

Lint and report number of lines by file.

Screenshot

Installation

npm install limitlines

Execute

limitlines [source] [options]

Source

Globby paths to scan.

string, separate by comma.

Default: .

Accept globby.

limitlines 'folder1/**/*, folder2/*.{html,js}'

Options

Ignore

Paths to ignore.

string, separate by comma.

Default: node_modules

limitlines --ignore 'somefolder'

Max Lines

Maximum lines by file.

integer

Default: 300

limitlines --maxlines 450

Min Lines

Minimun accepted lines by file.

integer

Default: 1

limitlines --minlines 1

Max Errors

Maximum errors accept.

integer

Default: 0

limitlines --maxerrors 3

Version

Output version number.

Alias -v.

limitlines --version

License

This project is licensed under the MIT license.