|
@@ -206,3 +206,11 @@ def CheckOwnersOnUpload(input_api, output_api):
|
|
|
|
|
|
def CheckDoNotSubmitOnCommit(input_api, output_api):
|
|
|
return input_api.canned_checks.CheckDoNotSubmit(input_api, output_api)
|
|
|
+
|
|
|
+
|
|
|
+def CheckPatchFormatted(input_api, output_api):
|
|
|
+ # TODO(https://crbug.com/979330) If clang-format is fixed for non-chromium
|
|
|
+ # repos, remove check_clang_format=False so that proto files can be formatted
|
|
|
+ return input_api.canned_checks.CheckPatchFormatted(input_api,
|
|
|
+ output_api,
|
|
|
+ check_clang_format=False)
|