mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-06 04:51:37 -07:00
Add pre-commit instructions
This commit is contained in:
parent
b0f05018c1
commit
b5da99c6b0
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
@ -239,6 +239,20 @@ pandoc -s -f markdown-smart -t man shellcheck.1.md -o shellcheck.1
|
||||||
sudo mv shellcheck.1 /usr/share/man/man1
|
sudo mv shellcheck.1 /usr/share/man/man1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### pre-commit
|
||||||
|
|
||||||
|
To run ShellCheck via [pre-commit](https://pre-commit.com/), add the Docker image to your `.pre-commit-config.yaml`:
|
||||||
|
|
||||||
|
```
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: shellcheck
|
||||||
|
name: shellcheck
|
||||||
|
language: docker_image
|
||||||
|
entry: koalaman/shellcheck:stable # or e.g. ":v0.7.2"
|
||||||
|
types: [shell]
|
||||||
|
```
|
||||||
|
|
||||||
### Travis CI
|
### Travis CI
|
||||||
|
|
||||||
Travis CI has now integrated ShellCheck by default, so you don't need to manually install it.
|
Travis CI has now integrated ShellCheck by default, so you don't need to manually install it.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue