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
1 changed files with 7 additions and 8 deletions

View File

@ -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:
hooks: - repo: https://github.com/koalaman/shellcheck-precommit
- id: shellcheck rev: v0.7.2
name: shellcheck hooks:
language: docker_image - id: shellcheck
entry: koalaman/shellcheck:stable # or e.g. ":v0.7.2" # args: ["--severity=warning"] # Optionally only show errors and warnings
types: [shell]
``` ```
### Travis CI ### Travis CI