test: Enable SC2046 shellcheck rule

This commit is contained in:
Hennadii Stepanov
2021-11-07 14:37:56 +02:00
parent 9a1ad7bc0d
commit fe0ff569ea
10 changed files with 17 additions and 13 deletions

View File

@@ -15,9 +15,8 @@ fi
# --min-confidence 100 will only report code that is guaranteed to be unused within the analyzed files.
# Any value below 100 introduces the risk of false positives, which would create an unacceptable maintenance burden.
if ! vulture \
--min-confidence 100 \
$(git ls-files -- "*.py"); then
mapfile -t FILES < <(git ls-files -- "*.py")
if ! vulture --min-confidence 100 "${FILES[@]}"; then
echo "Python dead code detection found some issues"
exit 1
fi