Ignore new shellcheck version (0.9.0) warnings

Ignore new warnings:
- SC2320: This $? refers to echo/printf, not a previous command.
- SC2317: Command appears to be unreachable. Check usage (or ignore if
          invoked indirectly).

Change-Id: I3d9e616c7a27b57b0f3f33d516c82bc13ba1faef

Signed-off-by: Robert Church <robert.church@windriver.com>
Change-Id: Idb260b1a75f1e1f0f99c95ad1cc41904539d2ce1
This commit is contained in:
Robert Church 2022-12-17 14:42:30 -06:00
parent aa56e7d5dd
commit 7600300644
1 changed files with 6 additions and 3 deletions

View File

@ -82,6 +82,7 @@ whitelist_externals = bash
# SC2231: Quote expansions in this for loop glob to prevent wordsplitting, e.g. "$dir"/*.txt .
# SC2236: Use -n instead of ! -z
# SC2268: Avoid x-prefix in comparisons as it no longer serves a purpose.
# SC2320: This $? refers to echo/printf, not a previous command.
#
# Run bashate twice to handle shell scripts that do not end in .sh
# grep for ' shell' and not 'shell' to exclude files with shell in their name
@ -101,6 +102,7 @@ whitelist_externals = bash
# SC2168: 'local' is only valid in functions.
# SC2219: Instead of 'let expr', prefer (( expr )) .
# SC2223: This default assignment may cause DoS due to globbing. Quote it.
# SC2317: Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
# SC3005: In POSIX sh, arithmetic for loops are undefined.
# SC3018: In POSIX sh, ++ is undefined.
# SC3020: In POSIX sh, &> is undefined.
@ -117,7 +119,8 @@ commands =
-print0 | xargs -r -n 1 -0 shellcheck \
-eSC1091 -eSC2001 -eSC2002 -eSC2004 -eSC2006 -eSC2034 \
-eSC2046 -eSC2064 -eSC2086 -eSC2119 -eSC2120 -eSC2154 \
-eSC2166 -eSC2181 -eSC2207 -eSC2231 -eSC2236 -eSC2268"
-eSC2166 -eSC2181 -eSC2207 -eSC2231 -eSC2236 -eSC2268 \
-eSC2320"
bash -c "find {toxinidir} \
-not \( -type d -name .?\* -prune \) \
-type f \
@ -131,8 +134,8 @@ commands =
-eSC2166 -eSC2181 -eSC2207 -eSC2231 -eSC2236 -eSC2268 \
-eSC1001 -eSC1009 -eSC1035 -eSC1072 -eSC1073 -eSC1090 \
-eSC2003 -eSC2009 -eSC2015 -eSC2069 -eSC2112 -eSC2155 \
-eSC2168 -eSC2219 -eSC2223 -eSC3005 -eSC3018 -eSC3020 \
-eSC3037 -eSC3039 -eSC3043"
-eSC2168 -eSC2219 -eSC2223 -eSC2317 -eSC3005 -eSC3018 \
-eSC3020 -eSC3037 -eSC3039 -eSC3043"
[testenv:linters]
basepython = python3