mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
linter: avoid false positives such as C++ lambda exprs by only detecting links starting with 'http'
This commit is contained in:
parent
0a388fac46
commit
1d20ad8a42
@ -10,7 +10,7 @@ ECODE=0
|
|||||||
FILES=""
|
FILES=""
|
||||||
for fname in $(git diff --name-only HEAD $(git merge-base HEAD master)); do
|
for fname in $(git diff --name-only HEAD $(git merge-base HEAD master)); do
|
||||||
if [[ $fname == *.mediawiki ]]; then
|
if [[ $fname == *.mediawiki ]]; then
|
||||||
GRES=$(grep -n '](' $fname)
|
GRES=$(grep -n '](http' $fname)
|
||||||
if [ "$GRES" != "" ]; then
|
if [ "$GRES" != "" ]; then
|
||||||
if [ $ECODE -eq 0 ]; then
|
if [ $ECODE -eq 0 ]; then
|
||||||
>&2 echo "Github Mediawiki format writes link as [URL text], not as [text](url):"
|
>&2 echo "Github Mediawiki format writes link as [URL text], not as [text](url):"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user