From 9390e12197e43d1fa8c0ed02948b1f1f6fa46f0d Mon Sep 17 00:00:00 2001 From: macie Date: Fri, 10 Nov 2023 21:05:10 +0100 Subject: [PATCH] ci: Ignore false positive warnings In wrapped/mocked commands `shellcheck` wrongly triggers warning SC2317: Command appears to be unreachable. --- tests/test_find.sh | 1 + unittest | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/test_find.sh b/tests/test_find.sh index 23e27d0..8886ab5 100644 --- a/tests/test_find.sh +++ b/tests/test_find.sh @@ -1,5 +1,6 @@ #!/bin/sh +# shellcheck disable=SC2317 beforeAll() { find() { # find mock case "$1" in diff --git a/unittest b/unittest index ef3c265..a390cd6 100755 --- a/unittest +++ b/unittest @@ -78,6 +78,7 @@ unittest__print_debug() { # ASSERTIONS # +# shellcheck disable=SC2317 test() { # same arguments as command test(1) UT4e1_test_error_msg=$(/bin/test "$@" 2>&1)