From 6c2e5478088b972b50855745b8a34f297f8a45fe Mon Sep 17 00:00:00 2001 From: jo Date: Mon, 16 Aug 2021 22:59:42 +0200 Subject: [PATCH] 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. --- .github/workflows/test.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 333517402..5f534545a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,7 +44,7 @@ jobs: shfmt_{tag}_linux_amd64 \ /usr/bin/shfmt - - run: make shell-check + - run: SEVERITY=warning make shell-check test: strategy: diff --git a/Makefile b/Makefile index fc8e65144..c2e69bef5 100644 --- a/Makefile +++ b/Makefile @@ -13,4 +13,4 @@ shell-format: shell-check: 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}