Allow custom shellcheck severity

Normal severity is normal.

CI severity is set to warning, but this should be
changed to style (default) once most
of the scripts are iether gone or modernized.
This commit is contained in:
jo 2021-08-16 22:59:42 +02:00
parent 38513c3bed
commit 6c2e547808
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ jobs:
shfmt_{tag}_linux_amd64 \ shfmt_{tag}_linux_amd64 \
/usr/bin/shfmt /usr/bin/shfmt
- run: make shell-check - run: SEVERITY=warning make shell-check
test: test:
strategy: strategy:

View File

@ -13,4 +13,4 @@ shell-format:
shell-check: shell-check:
shfmt -f . | xargs shfmt -i 2 -ci -sr -kp -d shfmt -f . | xargs shfmt -i 2 -ci -sr -kp -d
shfmt -f . | xargs shellcheck --color=always || true shfmt -f . | xargs shellcheck --color=always --severity=$${SEVERITY:-style}