Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koalaman/shellcheck-precommit
Pre-commit hook for ShellCheck
https://github.com/koalaman/shellcheck-precommit
Last synced: about 2 months ago
JSON representation
Pre-commit hook for ShellCheck
- Host: GitHub
- URL: https://github.com/koalaman/shellcheck-precommit
- Owner: koalaman
- License: other
- Created: 2021-08-29T23:43:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-08T03:25:53.000Z (10 months ago)
- Last Synced: 2024-11-06T15:46:33.207Z (2 months ago)
- Language: Shell
- Size: 22.5 KB
- Stars: 82
- Watchers: 5
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome-starred - koalaman/shellcheck-precommit - Pre-commit hook for ShellCheck (Shell)
README
# ShellCheck pre-commit hook
This is the official [pre-commit hook](https://pre-commit.com/) for
[ShellCheck](https://github.com/koalaman/shellcheck),
the static analysis tool for shell scripts.Activate by adding it to your `.pre-commit-config.yaml`:
```sh
repos:
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
# args: ["--severity=warning"] # Optionally only show errors and warnings
```#### Why a separate repo?
This repo keeps the pre-commit hook out of the critical path of ShellCheck
releases, reducing the number of things that can go wrong. This in turn helps
ensure a smoother `pre-commit autoupdate`.