Set CheckPatchFormatted flags to fail on diffs

Change-Id: Ifb826860e27139bc43b4411575e4c2bebcc81239
Bug: b:185520494
This commit is contained in:
James Zern 2021-09-13 17:44:38 -07:00 committed by Roberto Alanis Baez
parent e23cd5481c
commit b96220636b

View File

@ -90,10 +90,12 @@ def _CommonChecks(input_api, output_api):
input_api.canned_checks.CheckLongLines(
input_api, output_api, maxlen=_LIBWEBP_MAX_LINE_LENGTH))
results.extend(
input_api.canned_checks.CheckPatchFormatted(input_api,
output_api,
check_clang_format=False,
check_python=True))
input_api.canned_checks.CheckPatchFormatted(
input_api,
output_api,
check_clang_format=False,
check_python=True,
result_factory=output_api.PresubmitError))
return results