Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiagoporto/limit-lines
Lint and report number of lines by file.
https://github.com/tiagoporto/limit-lines
check-lines cli file-lines javascript lint linter reporting-tool static-code-analysis
Last synced: 4 months ago
JSON representation
Lint and report number of lines by file.
- Host: GitHub
- URL: https://github.com/tiagoporto/limit-lines
- Owner: tiagoporto
- License: mit
- Created: 2018-03-12T14:20:05.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-03-09T00:54:14.000Z (11 months ago)
- Last Synced: 2024-10-05T13:08:50.796Z (4 months ago)
- Topics: check-lines, cli, file-lines, javascript, lint, linter, reporting-tool, static-code-analysis
- Language: JavaScript
- Homepage:
- Size: 355 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
![Open Source Love](https://badges.frapsoft.com/os/v3/open-source.svg)
[![Release](https://img.shields.io/npm/v/limit-lines.svg?style=flat-square&label=release)](https://github.com/tiagoporto/limit-lines/releases)
[![Node](https://img.shields.io/node/v/limit-lines.svg?style=flat-square)](https://www.npmjs.com/package/limit-lines)
[![Downloads](https://img.shields.io/npm/dt/limit-lines.svg?style=flat-square)](https://www.npmjs.com/package/limit-lines)
[![install size](https://packagephobia.now.sh/badge?p=limit-lines)](https://packagephobia.now.sh/result?p=limit-lines)> Lint and report number of lines by file.
![Screenshot](./docs/Screenshot.png)
## Installation
```bash
npm install limit-lines
```## Execute
```bash
limitlines [options]
```## Options
### Path
`string`, separate by comma.
accept [globby](https://github.com/sindresorhus/globby) paths.
Default: `.`
```bash
limitlines --path 'folder1/**/*, folder2/*.{html,js}'
```### Ignore
`string`, separate by comma
Paths to ignore.
Default: `node_modules`
```bash
limitlines --ignore 'somefolder'
```### Max Lines
`integer`
Maximum lines by file. Default: `300`
```bash
limitlines --maxlines 450
```### Min Lines
`integer`
Minimun accepted lines by file. Default: 1
```bash
limitlines --minlines 1
```### Max Errors
`integer`
Maximum errors accept. Default: `0`
```bash
limitlines --maxerrors 3
```### Version
Output version number
Alias `-v`
```bash
limitlines --version
```## License
Limit Lines is released under the terms of the [MIT license](https://github.com/tiagoporto/limit-lines/blob/main/LICENSE).