1
0
mirror of https://github.com/koalaman/shellcheck.git synced 2025-03-12 12:35:25 -07:00

Add shellcheck-precommit hook to README.md

This commit is contained in:
Vidar Holen 2021-08-29 17:08:09 -07:00
parent b5da99c6b0
commit 10817533d6

@ -241,16 +241,15 @@ 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`:
To run ShellCheck via [pre-commit](https://pre-commit.com/), add the hook 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]
repos:
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.7.2
hooks:
- id: shellcheck
# args: ["--severity=warning"] # Optionally only show errors and warnings
```
### Travis CI