scripts: cover .tsx in the tracker-tag and comment-block lints
This commit is contained in:
parent
44164d1a89
commit
79dc8ca615
2 changed files with 5 additions and 5 deletions
|
|
@ -8,7 +8,7 @@
|
|||
# 0 otherwise. It runs as its own CI job and IS a required check on the
|
||||
# forge (branch protection) — a hit blocks merge.
|
||||
#
|
||||
# Scope: tracked *.rs *.nix *.js *.ts *.css *.html. Markdown is exempt
|
||||
# Scope: tracked *.rs *.nix *.js *.ts *.tsx *.css *.html. Markdown is exempt
|
||||
# (prose docs may legitimately cite the tracker). The pattern matches a
|
||||
# hash, 2-5 digits, then a non-alphanumeric char or end-of-line. A real
|
||||
# tracker tag is never glued to a letter, so the trailing class skips
|
||||
|
|
@ -31,7 +31,7 @@ pattern='#[0-9]{2,5}([^0-9a-zA-Z]|$)'
|
|||
# and an empty file list. Lines carrying the `lint:allow` marker are
|
||||
# dropped (legitimate non-tracker `#<digits>`; see the header).
|
||||
hits="$(
|
||||
git ls-files -z '*.rs' '*.nix' '*.js' '*.ts' '*.css' '*.html' \
|
||||
git ls-files -z '*.rs' '*.nix' '*.js' '*.ts' '*.tsx' '*.css' '*.html' \
|
||||
| xargs -0 -r grep -nE "$pattern" /dev/null 2>/dev/null \
|
||||
| grep -v 'lint:allow' || true
|
||||
)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue