pre-commit-shell is a pre-commit component, which wrapper shellcheck to check shell scripts:)
pre-commit-shell requires the following to run:
- create .pre-commit-config.yaml in you git project
- pre-commit install
- enjoy it
example .pre-commit-config.yaml as following:
- repo: git://github.com/detailyang/pre-commit-shell
rev: v1.0.6
hooks:
- id: shell-lint
args: [--format=json]
To contribute to pre-commit-shell, clone this repo locally and commit your code on a separate branch.
GitHub @detailyang
pre-commit-shell is licensed under the MIT license.