Make lint errors fatal in presubmit and fix files in whitelisted paths
BUG=webrtc:5149 Review-Url: https://codereview.webrtc.org/2762963002 Cr-Commit-Position: refs/heads/master@{#17323}
This commit is contained in:
@ -255,9 +255,7 @@ def _CheckApprovedFilesLintClean(input_api, output_api,
|
||||
|
||||
if cpplint._cpplint_state.error_count > 0:
|
||||
if input_api.is_committing:
|
||||
# TODO(kjellander): Change back to PresubmitError below when we're
|
||||
# confident with the lint settings.
|
||||
res_type = output_api.PresubmitPromptWarning
|
||||
res_type = output_api.PresubmitError
|
||||
else:
|
||||
res_type = output_api.PresubmitPromptWarning
|
||||
result = [res_type('Changelist failed cpplint.py check.')]
|
||||
|
Reference in New Issue
Block a user