Compare commits

..

1 commit

Author SHA1 Message Date
Jesus Checa Hidalgo
d48bf8554e Shell static analysis
Add pre-commit hook for static analysis on shell scripts (shellcheck)
2024-08-05 09:33:39 +02:00
2 changed files with 12 additions and 5 deletions

View file

@ -12,3 +12,10 @@ repos:
rev: 1.32.2 rev: 1.32.2
hooks: hooks:
- id: tmt-lint - 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

View file

@ -14,7 +14,7 @@ framework: shell
# Always define "test" key and override in adjust or in each specific test # Always define "test" key and override in adjust or in each specific test
# metadata if needed. # metadata if needed.
test: "PATH=/usr/lib64/llvm18/bin:$PATH ./test.sh" test: ./test.sh
# Commonly used keys are initialized to empty. # Commonly used keys are initialized to empty.
require: [] require: []
@ -35,10 +35,10 @@ adjust+:
# Common requirements when LLVM is not SCL-ized # Common requirements when LLVM is not SCL-ized
- require+: - require+:
- clang18 - clang
- clang18-libs - clang-libs
- libomp18 - libomp
- libomp18-devel - libomp-devel
when: collection is not defined when: collection is not defined
# Requirements for SCL-ized LLVM # Requirements for SCL-ized LLVM