Skip to content

Commit 72a18a7

Browse files
tests: Add information on how to add Vulture suppressions
1 parent 7d4bc60 commit 72a18a7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/lint/lint-python-dead-code.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ if ! command -v vulture > /dev/null; then
1313
exit 0
1414
fi
1515

16-
vulture \
16+
VULTURE_SUPPRESSIONS=$(dirname "${BASH_SOURCE[0]}")/lint-python-dead-code-whitelist
17+
if ! vulture \
1718
--min-confidence 60 \
1819
$(git rev-parse --show-toplevel) \
19-
$(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

Comments
 (0)