Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: PRESUBMIT.py

Issue 105633012: Include order check should work better for files containing uncheckable includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | PRESUBMIT_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 5e64d57ed460d8138391209fd5f2161007609034..d81562992613b8513bc6276e3a093cfd5c0397c2 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -666,7 +666,7 @@ def _CheckIncludeOrderInFile(input_api, f, changed_linenums):
for line in contents[line_num:]:
line_num += 1
if uncheckable_includes_pattern.match(line):
- return []
+ continue
if if_pattern.match(line):
scopes.append(current_scope)
current_scope = []
« no previous file with comments | « no previous file | PRESUBMIT_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698