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 <benjamin.drung@canonical.com>
This commit is contained in:
Benjamin Drung 2024-07-29 10:34:34 +02:00
parent 28a78a1739
commit 6fc11ff9e3
2 changed files with 8 additions and 1 deletions

7
.shellcheckrc Normal file
View File

@ -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 <file>
# https://www.shellcheck.net/wiki/SC1091
disable=SC1091

2
debian/salsa-ci.yml vendored
View File

@ -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: []