Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Lint and report number of lines by file.

Awesome Lists containing this project

README

        


limit lines

![Open Source Love](https://badges.frapsoft.com/os/v3/open-source.svg) Bash Shell


👍 ? : 😞

[![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).