koalaman/shellcheck-precommit

Pre-commit hook for ShellCheck

129

stars

25

commits

Shell

primary language

Aug 4, 2025

updated

README

ShellCheck pre-commit hook

This is the official pre-commit hook for ShellCheck, the static analysis tool for shell scripts.

Activate by adding it to your .pre-commit-config.yaml:

repos:
-   repo: https://github.com/koalaman/shellcheck-precommit
    rev: v0.11.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.

Contributors

koalaman

24 commits

w4tsn

1 commits

koalaman/shellcheck-precommit

Pre-commit hook for ShellCheck

129

stars

25

commits

Shell

primary language

Aug 4, 2025

updated

README

ShellCheck pre-commit hook

This is the official pre-commit hook for ShellCheck, the static analysis tool for shell scripts.

Activate by adding it to your .pre-commit-config.yaml:

repos:
-   repo: https://github.com/koalaman/shellcheck-precommit
    rev: v0.11.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.

Contributors

koalaman

24 commits

w4tsn

1 commits

Languages

Shell

100.0%