Skip to content

Commit

Permalink
ic: test: shellcheck script
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiwan committed Dec 14, 2023
1 parent e9a62ab commit bf337d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test1 → test/shellcheck_run
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/bin/bash
# shellcheck_run
# Part of the SEALS project.

echo "*** Test 1 *** "
echo "ShellCheck !"

shellcheck -e SC2155,SC2063,SC2166 -S warning *.sh
shellcheck -e SC2155,SC2063,SC2166,SC1090 -S warning *.sh
# https://www.shellcheck.net/wiki/
# -e : exclude warning
# SC2155 : Declare and assign separately to avoid masking return values.
# SC2063 : (warning): Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
# SC2166 : (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
# SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location

0 comments on commit bf337d0

Please sign in to comment.