summaryrefslogtreecommitdiff
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 1ad3a5ea3e..6f19e24a46 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -8,7 +8,14 @@ See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmit API built into depot_tools.
"""
+LINT_FILTERS = [
+ '-',
+ '+build/header_guard',
+]
+
def CheckChangeOnUpload(input_api, output_api):
results = []
results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api)
+ results += input_api.canned_checks.CheckChangeLintsClean(
+ input_api, output_api, None, LINT_FILTERS)
return results