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:
- 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