Skip to content

Commit adcf35b

Browse files
Merge pull request #426 from NathanJPhillips/bugfix/linter-line-number-recognition
Prevent recognising lines by prefix
2 parents 272ff50 + 12561ba commit adcf35b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/run_lint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ for file in $diff_files; do
4949

5050
# Include line 0 errors (e.g. copyright)
5151
lint_grep_filter+=$file
52-
lint_grep_filter+=":0"
52+
lint_grep_filter+=":0:"
5353

5454
# We first filter only the lines that start with a commit hash
5555
# Then we filter out the ones that come from the start commit
@@ -66,7 +66,7 @@ for file in $diff_files; do
6666

6767
# The format from the linting script is filepath:linenum: [error type]
6868
# So we build the first bit to filter out relevant lines
69-
LINE_FILTER=$file:$LINENUM
69+
LINE_FILTER=$file:$LINENUM:
7070

7171
# Add the line filter on to the grep expression as we want
7272
# lines that match any of the line filters

0 commit comments

Comments
 (0)