Commit f41670fd authored by Garrett Beaty's avatar Garrett Beaty Committed by LUCI CQ

Add a presubmit check to enforce that code is formatted.

Change-Id: I75be1231fd695459abfdc88af3ccc0ec5cdfde1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3862407
Auto-Submit: Garrett Beaty <gbeaty@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
parent bbb66d79
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment