An open API service indexing awesome lists of open source software.

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: 8 days ago
JSON representation

Lint and report number of lines by file.

Awesome Lists containing this project

README

        


limit lines

[![Release](https://img.shields.io/npm/v/limitlines.svg?style=flat-square&label=release)](https://github.com/tiagoporto/limitlines/releases)
[![Node](https://img.shields.io/node/v/limitlines.svg?style=flat-square)](https://www.npmjs.com/package/limitlines)
[![Downloads](https://img.shields.io/npm/d18m/limitlines.svg?style=flat-square)](https://www.npmjs.com/package/limitlines)

> Lint and report number of lines by file.

![Screenshot](./docs/Screenshot.png)

## 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).