Skip to content

Commit

Permalink
ci: Ignore false positive warnings
Browse files Browse the repository at this point in the history
In wrapped/mocked commands
`shellcheck` wrongly triggers warning SC2317: Command appears to be
unreachable.
  • Loading branch information
macie committed Nov 10, 2023
1 parent fc4b6b4 commit 9390e12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_find.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh

# shellcheck disable=SC2317
beforeAll() {
find() { # find mock
case "$1" in
Expand Down
1 change: 1 addition & 0 deletions unittest
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9390e12

Please sign in to comment.