Commit d57771d0 authored by bradnelson@google.com's avatar bradnelson@google.com

Make owners check optional.

BUG=None
TEST=None
R=thomasvl@google.com
Review URL: http://codereview.chromium.org/6728031

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@80043 0039d316-1c4b-4281-b951-d872f2087c98
parent 2b5ce56a
......@@ -838,7 +838,8 @@ def _CheckSingletonInHeaders(input_api, output_api, source_file_filter):
def PanProjectChecks(input_api, output_api,
excluded_paths=None, text_files=None,
license_header=None, project_name=None):
license_header=None, project_name=None,
owners_check=True):
"""Checks that ALL chromium orbit projects should use.
These are checks to be run on all Chromium orbit project, including:
......@@ -884,8 +885,9 @@ def PanProjectChecks(input_api, output_api,
text_files = lambda x: input_api.FilterSourceFile(x, black_list=black_list,
white_list=white_list)
results.extend(input_api.canned_checks.CheckOwners(
input_api, output_api, source_file_filter=sources))
if owners_check:
results.extend(input_api.canned_checks.CheckOwners(
input_api, output_api, source_file_filter=sources))
results.extend(input_api.canned_checks.CheckLongLines(
input_api, output_api, source_file_filter=sources))
......
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