1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
This tool aims to run **multiple** linters on a commit range compatible with `git`.
Inspired by [lint-diff](https://github.com/grvcoelho/lint-diff) and [lint-staged](https://github.com/okonet/lint-staged)
You can add a linter by editing the config file found in your user path.
* **
If no config file is found, you will be asked which default linters you would like to add.
```toml
[[linters]]
name = "eslint"
cmd = "eslint"
args = ["{file}", "-f=compact"]
regex = '(?P<file>.*): line (?P<line>\d*), col \d*, (?P<message>.*)'
ext = ["js", "jsx"]
```
```shell
cargo install lint-emit
```
```shell
$ lint-emit HEAD^..HEAD
```
```shell
$ lint-emit HEAD~3..HEAD
```
```shell
$ lint-emit HEAD
$ lint-emit
```
```shell
$ lint-emit --linters phpmd phpcs
```