We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d4bc60 commit 72a18a7Copy full SHA for 72a18a7
test/lint/lint-python-dead-code.sh
@@ -13,7 +13,11 @@ if ! command -v vulture > /dev/null; then
13
exit 0
14
fi
15
16
-vulture \
+VULTURE_SUPPRESSIONS=$(dirname "${BASH_SOURCE[0]}")/lint-python-dead-code-whitelist
17
+if ! vulture \
18
--min-confidence 60 \
19
$(git rev-parse --show-toplevel) \
- $(dirname "${BASH_SOURCE[0]}")/lint-python-dead-code-whitelist
20
+ "${VULTURE_SUPPRESSIONS}"; then
21
+ echo "False positives? Suppressions can be added to ${VULTURE_SUPPRESSIONS}"
22
+ exit 1
23
+fi
0 commit comments