diff --git a/tox.ini b/tox.ini index 4b5d79086b..ff4658f3d4 100644 --- a/tox.ini +++ b/tox.ini @@ -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