diff options
author | Roberto Alanis <alanisbaez@google.com> | 2021-09-20 20:49:41 +0000 |
---|---|---|
committer | Roberto Alanis Baez <alanisbaez@google.com> | 2021-09-22 22:46:19 +0000 |
commit | cf985433bb5cd76f891f037ac61e72fad3210cc3 (patch) | |
tree | d69439f77d8809523d0dacbedf19ff709b1d0137 | |
parent | fcbb8cc2b4fbe59ddb690421945dc32e431feab3 (diff) | |
download | libwebm-cf985433bb5cd76f891f037ac61e72fad3210cc3.tar.gz |
Set CheckPatchFormatted flags to fail on diffs
Change-Id: I6164c1a26d295b315531a88f37319de11e69ed8e
Bug: b:185520494
-rw-r--r-- | PRESUBMIT.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 5792b67..4199ba9 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -59,9 +59,12 @@ def _CommonChecks(input_api, output_api): input_api.canned_checks.CheckLongLines( input_api, output_api, maxlen=_LIBWEBM_MAX_LINE_LENGTH)) results.extend( - input_api.canned_checks.CheckPatchFormatted(input_api, - output_api, - check_python=True)) + input_api.canned_checks.CheckPatchFormatted( + input_api, + output_api, + check_clang_format=True, + check_python=True, + result_factory=output_api.PresubmitError)) return results |