File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 282282# flag. By default all errors are on, so only add here categories that should be
283283# off by default (i.e., categories that must be enabled by the --filter= flags).
284284# 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' ]
291286
292287# The default list of categories suppressed for C (not C++) files.
293288_DEFAULT_C_SUPPRESSED_CATEGORIES = [
Original file line number Diff line number Diff line change 3737 echo " Ensure cpplint.py is inside the $script_folder directory then run again"
3838 exit 1
3939 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'
4141 fi
4242elif [[ " $mode " == " DOXYGEN" ]]
4343then
@@ -109,7 +109,7 @@ for file in $diff_files; do
109109
110110 # Run the linting script and filter:
111111 # 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 " )
113113
114114 # Providing some errors were relevant we print them out
115115 if [ " $result " ]
You can’t perform that action at this time.
0 commit comments