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:
parent
38513c3bed
commit
6c2e547808
2 changed files with 2 additions and 2 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -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:
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -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}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue