Skip to content

Commit 12af8be

Browse files
committed
tests: patch: shellcheck: ignore unused functions
Same story as SC2317, the way tests are structured and called confuses shellcheck. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 6265521 commit 12af8be

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/patch/shellcheck/shellcheck.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ HEAD=$(git rev-parse HEAD)
55
rc=0
66

77
# SC2317 = unreachable code, gets confused by test case definitions
8-
SC_FLAGS="-x -e SC2317"
8+
# SC2329 = function not invoked, gets confused by test case definitions
9+
SC_FLAGS="-x -e SC2317 -e SC2329"
910

1011
pr() {
1112
echo " ====== $* ======" | tee -a /dev/stderr

0 commit comments

Comments
 (0)