Skip to content

Commit 927e115

Browse files
author
wodry
committed
Test: Harden lint-filenames.sh
1 parent 450055b commit 927e115

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/lint/lint-filenames.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
export LC_ALL=C
1111

1212
EXIT_CODE=0
13-
OUTPUT=$(git ls-files -- "*.cpp" "*.h" "*.py" "*.sh" | grep -vE '^[a-z0-9_./-]+$' | grep -vE 'src/(secp256k1|univalue)/')
13+
OUTPUT=$(git ls-files --full-name -- "*.[cC][pP][pP]" "*.[hH]" "*.[pP][yY]" "*.[sS][hH]" | \
14+
grep -vE '^[a-z0-9_./-]+$' | \
15+
grep -vE '^src/(secp256k1|univalue)/')
16+
1417
if [[ ${OUTPUT} != "" ]]; then
1518
echo "Use only lowercase alphanumerics (a-z0-9), underscores (_), hyphens (-) and dots (.)"
1619
echo "in source code filenames:"

0 commit comments

Comments
 (0)