File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- set -e
3
+ set -evx
4
4
5
5
script_folder=$( dirname " $0 " )
6
6
absolute_repository_root=$( git rev-parse --show-toplevel)
37
37
echo " Ensure cpplint.py is inside the $script_folder directory then run again"
38
38
exit 1
39
39
else
40
- cmd=' ${script_folder}/cpplint.py --filter=-whitespace/operators,-readability/identifier_spacing $file 2>&1 >/dev/null '
40
+ cmd=' ${script_folder}/cpplint.py --filter=-whitespace/operators,-readability/identifier_spacing $file 2>&1'
41
41
fi
42
42
else
43
43
echo " Mode $mode not recognized"
@@ -92,6 +92,7 @@ for file in $diff_files; do
92
92
93
93
# Run the linting script and filter:
94
94
# The errors from the linter go to STDERR so must be redirected to STDOUT
95
+ ${cmd}
95
96
result=$( eval " ${cmd} " | " ${script_folder} /filter_by_lines.py" " $file " " $added_lines_file " " $absolute_repository_root " )
96
97
97
98
# Providing some errors were relevant we print them out
You can’t perform that action at this time.
0 commit comments