mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-11 03:53:22 +02:00
test: Enable SC2046 shellcheck rule
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user