File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 12
12
exit 1
13
13
fi
14
14
15
+ if ! [[ -e scripts/cpplint.py ]]
16
+ then
17
+ echo " Lint script could not be found in the scripts directory"
18
+ echo " Ensure cpplint.py is inside the scripts directory then run again"
19
+ exit 1
20
+ fi
21
+
15
22
git_start=$1
16
23
git_end=$2
17
24
@@ -74,7 +81,7 @@ for file in $diff_files; do
74
81
# Run the linting script and filter by the filter we've build
75
82
# of all the modified lines
76
83
# The errors from the linter go to STDERR so must be redirected to STDOUT
77
- result=` python scripts/cpplint.py $file 2>&1 | grep -E " $lint_grep_filter " `
84
+ result=` python scripts/cpplint.py $file 2>&1 | { grep -E " $lint_grep_filter " || true ; } `
78
85
79
86
# Providing some errors were relevant we print them out
80
87
if [ " $result " ]
You can’t perform that action at this time.
0 commit comments