Skip to content
Snippets Groups Projects
Commit 93a44149 authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

pre-commit: Add shellcheck to pre-commit configuration.

`Shellcheck` is a linter tool for shell scripts that is also used in
Automation Hub.

This change adds a pre-commit hook to run shellcheck on shell scripts.
The hook uses a Docker image, which needs to be downloaded on the first
run. It works well  with `podman`.
parent 77b72af1
No related branches found
No related tags found
No related merge requests found
......@@ -38,3 +38,8 @@ repos:
entry: utils/ansible-doc-test
# args: ['-v', 'roles', 'plugins']
files: ^.*.py$
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.8.0
hooks:
- id: shellcheck
args: ["--severity=warning"] # Only show errors and warnings
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment