Shell static analysis

Add pre-commit hook for static analysis on shell scripts (shellcheck)
This commit is contained in:
Jesus Checa Hidalgo 2024-08-05 09:33:39 +02:00
commit d48bf8554e

View file

@ -12,3 +12,10 @@ repos:
rev: 1.32.2
hooks:
- id: tmt-lint
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
require_serial: true # Podman has trouble running concurrently
args: ["--exclude=SC1091"] # Ignore "Not following" sourced scripts