Add shellcheck-precommit hook to README.md
This commit is contained in:
parent
b5da99c6b0
commit
10817533d6
11
README.md
11
README.md
|
@ -241,16 +241,15 @@ sudo mv shellcheck.1 /usr/share/man/man1
|
||||||
|
|
||||||
### pre-commit
|
### pre-commit
|
||||||
|
|
||||||
To run ShellCheck via [pre-commit](https://pre-commit.com/), add the Docker image to your `.pre-commit-config.yaml`:
|
To run ShellCheck via [pre-commit](https://pre-commit.com/), add the hook to your `.pre-commit-config.yaml`:
|
||||||
|
|
||||||
```
|
```
|
||||||
- repo: local
|
repos:
|
||||||
|
- repo: https://github.com/koalaman/shellcheck-precommit
|
||||||
|
rev: v0.7.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: shellcheck
|
- id: shellcheck
|
||||||
name: shellcheck
|
# args: ["--severity=warning"] # Optionally only show errors and warnings
|
||||||
language: docker_image
|
|
||||||
entry: koalaman/shellcheck:stable # or e.g. ":v0.7.2"
|
|
||||||
types: [shell]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Travis CI
|
### Travis CI
|
||||||
|
|
Loading…
Reference in New Issue