2016-09-28 17:01:02 +00:00
|
|
|
**-o <linters>, --only=<linters>**
|
|
|
|
A comma-separated list of only those linters to run.
|
|
|
|
**-x <linters> --exclude=<linters>**
|
|
|
|
A comma-separated list of linters to skip.
|
|
|
|
**-l, --linters**
|
|
|
|
Show the list of configured linters.
|
|
|
|
**-b, --base**
|
|
|
|
Check all changed files from GIT_DIR, not just those in the current directory and down.
|
|
|
|
**-a, --all**
|
|
|
|
Scan all files, not just those that have changed.
|
|
|
|
**-e, --every**
|
|
|
|
Scan all files, not just those that have changed, from GIT_DIR. Short for -b -a
|
|
|
|
**-w, --workspace**
|
|
|
|
Scan the workspace [default]
|
|
|
|
**-s, --staging**
|
|
|
|
Scan the staging area (useful for pre-commit).
|
2016-10-03 19:31:01 +00:00
|
|
|
**-c <path>, --config=<path>**
|
|
|
|
Path to config file
|
|
|
|
**-t, --bylinter**
|
|
|
|
Group reports by linter first as they appear in the config file [default]
|
|
|
|
**-f, --byfile**
|
|
|
|
Group reports by file first, linter second
|
2016-09-28 17:01:02 +00:00
|
|
|
**-d, --dryrun**
|
|
|
|
Report what git-lint would do, but don't actually do anything.
|
|
|
|
**-q, --quiet**
|
2016-10-03 19:31:01 +00:00
|
|
|
Produce a short report of file that failed to pass.
|
2016-09-28 17:01:02 +00:00
|
|
|
**-h, --help**
|
|
|
|
Print a short help message
|
2016-10-03 19:31:01 +00:00
|
|
|
**-V, --verbose**
|
|
|
|
Print a slightly more verbose long report
|
2016-09-28 17:01:02 +00:00
|
|
|
**-v, --version**
|
|
|
|
Print version information
|