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 7f7e41d commit c9532edCopy full SHA for c9532ed
scripts/lint_xrefs.sh
@@ -23,8 +23,8 @@ while IFS=: read -r filepath link; do
23
status=1
24
fi
25
done < <(
26
- git --no-pager grep --no-color -I -o -E \
27
- '\[[^]]+\]\([^[:space:])]*/[^[:space:])]*\)|href="[^"]*/[^"]*"|src="[^"]*/[^"]*"' \
+ git --no-pager grep --no-color -I -P -o \
+ '(?!.*@lint-ignore)(?:\[[^]]+\]\([^[:space:])]*/[^[:space:])]*\)|href="[^"]*/[^"]*"|src="[^"]*/[^"]*")' \
28
-- '*' \
29
':(exclude).*' \
30
':(exclude)**/.*' \
@@ -33,7 +33,6 @@ done < <(
33
':(exclude)**/*.xml' \
34
':(exclude,glob)**/third-party/**' \
35
':(exclude,glob)**/third_party/**' \
36
- | grep -v '@lint-ignore' \
37
| grep -Ev 'https?://' \
38
| sed -E \
39
-e 's#([^:]+):\[[^]]+\]\(([^)]+)\)#\1:\2#' \
0 commit comments