Skip to content

Commit 33ad837

Browse files
noamrzcorpan
andauthored
Add lint step for ambiguous list literals
The "much greater/less than" unicode characters that look like list literals, I've made this mistake a few times... Lint would catch this early. Co-authored-by: Simon Pieters <[email protected]>
1 parent 3320e88 commit 33ad837

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources.whatwg.org/build/deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ MATCHES=$(
8989
grep -niE '\s+$' "$INPUT_FILE" | perl -lpe 'print "\nTrailing whitespace:" if $. == 1'
9090
grep $'\t' "$INPUT_FILE" | perl -lpe 'print "\nTab:" if $. == 1'
9191
grep $'\xc2\xa0' "$INPUT_FILE" | perl -lpe 'print "\nUnescaped nonbreaking space:" if $. == 1'
92+
grep $'[\u226a\u226b]' "$INPUT_FILE" | perl -lpe 'print "\nWrong list literals, use \uAB\uBB instead:" if $. == 1'
9293
)
9394
if [ -n "$MATCHES" ]; then
9495
echo "$MATCHES"

0 commit comments

Comments
 (0)