diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-11-07 14:37:56 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-11-13 18:05:26 +0200 |
commit | fe0ff569ea6c353f88609c0f5f9b6fa80ff74f15 (patch) | |
tree | 53ed10068a39ef9a8423811ea75bdb8d4de3d0b3 /test/lint/lint-python-dead-code.sh | |
parent | 9a1ad7bc0dd8a0769738ca4dffbeb8d55438b0dc (diff) | |
download | bitcoin-fe0ff569ea6c353f88609c0f5f9b6fa80ff74f15.tar.xz |
test: Enable SC2046 shellcheck rule
Diffstat (limited to 'test/lint/lint-python-dead-code.sh')
-rwxr-xr-x | test/lint/lint-python-dead-code.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/lint/lint-python-dead-code.sh b/test/lint/lint-python-dead-code.sh index c3b6ff3c98..247bfb310a 100755 --- a/test/lint/lint-python-dead-code.sh +++ b/test/lint/lint-python-dead-code.sh @@ -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 |