https://github.com/tiagoporto/limitlines
Lint and report number of lines by file.
https://github.com/tiagoporto/limitlines
check-lines cli file-lines javascript lint linter node reporting-tool static-code-analysis
Last synced: 5 months ago
JSON representation
Lint and report number of lines by file.
- Host: GitHub
- URL: https://github.com/tiagoporto/limitlines
- Owner: tiagoporto
- License: mit
- Created: 2018-03-12T14:20:05.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-06-06T18:14:47.000Z (5 months ago)
- Last Synced: 2025-06-06T19:18:38.626Z (5 months ago)
- Topics: check-lines, cli, file-lines, javascript, lint, linter, node, reporting-tool, static-code-analysis
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/limitlines
- Size: 862 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/tiagoporto/limitlines/releases)
[](https://www.npmjs.com/package/limitlines)
[](https://www.npmjs.com/package/limitlines)
> Lint and report number of lines by file.

## Installation
```bash
npm install limitlines
```
## Execute
```bash
limitlines [source] [options]
```
### Source
Globby paths to scan.
`string`, separate by comma.
Default: `.`
Accept [globby](https://github.com/sindresorhus/globby).
```bash
limitlines 'folder1/**/*, folder2/*.{html,js}'
```
## Options
### Ignore
Paths to ignore.
`string`, separate by comma.
Default: `node_modules`
```bash
limitlines --ignore 'somefolder'
```
### Max Lines
Maximum lines by file.
`integer`
Default: `300`
```bash
limitlines --maxlines 450
```
### Min Lines
Minimun accepted lines by file.
`integer`
Default: 1
```bash
limitlines --minlines 1
```
### Max Errors
Maximum errors accept.
`integer`
Default: `0`
```bash
limitlines --maxerrors 3
```
### Version
Output version number.
Alias `-v`.
```bash
limitlines --version
```
## License
This project is licensed under the [MIT license](https://github.com/tiagoporto/limitlines/blob/main/LICENSE).