File tree 2 files changed +3
-8
lines changed
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 282
282
# flag. By default all errors are on, so only add here categories that should be
283
283
# off by default (i.e., categories that must be enabled by the --filter= flags).
284
284
# All entries here should start with a '-' or '+', as in the --filter= flag.
285
- _DEFAULT_FILTERS = [
286
- '-build/include_alpha' ,
287
- '-whitespace/' ,
288
- '-readability/braces' ,
289
- '-readability/identifier_spacing' ,
290
- ]
285
+ _DEFAULT_FILTERS = ['-build/include_alpha' ]
291
286
292
287
# The default list of categories suppressed for C (not C++) files.
293
288
_DEFAULT_C_SUPPRESSED_CATEGORIES = [
Original file line number Diff line number Diff line change 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 $file 2>&1 >/dev/null'
40
+ cmd=' ${script_folder}/cpplint.py --filter=-whitespace/operators,-readability/identifier_spacing $file 2>&1 >/dev/null'
41
41
fi
42
42
elif [[ " $mode " == " DOXYGEN" ]]
43
43
then
@@ -109,7 +109,7 @@ for file in $diff_files; do
109
109
110
110
# Run the linting script and filter:
111
111
# The errors from the linter go to STDERR so must be redirected to STDOUT
112
- result=$( eval $ cmd | " ${script_folder} /filter_by_lines.py" " $file " " $added_lines_file " " $absolute_repository_root " )
112
+ result=$( eval " ${ cmd} " | " ${script_folder} /filter_by_lines.py" " $file " " $added_lines_file " " $absolute_repository_root " )
113
113
114
114
# Providing some errors were relevant we print them out
115
115
if [ " $result " ]
You can’t perform that action at this time.
0 commit comments