From 6fc11ff9e32e3115e91d4b5afefa5badb4da452f Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Mon, 29 Jul 2024 10:34:34 +0200 Subject: [PATCH] Move shellcheck configuration to .shellcheckrc Move shellcheck configuration to `.shellcheckrc`. That way editors like VSCode will pick up the configuration as well. Signed-off-by: Benjamin Drung --- .shellcheckrc | 7 +++++++ debian/salsa-ci.yml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .shellcheckrc diff --git a/.shellcheckrc b/.shellcheckrc new file mode 100644 index 0000000..354e31d --- /dev/null +++ b/.shellcheckrc @@ -0,0 +1,7 @@ +# SC1090: Can't follow non-constant source. Use a directive to specify location +# https://www.shellcheck.net/wiki/SC1090 +disable=SC1090 + +# SC1091: Not following +# https://www.shellcheck.net/wiki/SC1091 +disable=SC1091 diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml index ef9162e..0b58047 100644 --- a/debian/salsa-ci.yml +++ b/debian/salsa-ci.yml @@ -20,5 +20,5 @@ shellcheck: - apt-get update - apt-get install -y shellcheck - | - shellcheck -e SC1090,SC1091 -s dash hook-functions $(find hooks scripts -type f) $({ find . -maxdepth 1 -type f -executable; find debian -maxdepth 1 -type f; find docs kernel -type f; } | xargs grep -l '^#!/bin/sh') + shellcheck -s dash hook-functions $(find hooks scripts -type f) $({ find . -maxdepth 1 -type f -executable; find debian -maxdepth 1 -type f; find docs kernel -type f; } | xargs grep -l '^#!/bin/sh') needs: []