Include order check should work better for files containing uncheckable includes
Currently as soon as we see an uncheckable include (like ipc/*macros.h or
windows.h) we stop checking the file. Instead we should just skip that line
and continue checking.
Review URL: https://codereview.chromium.org/105633012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243427 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 6a77b9f6..aa8d97f3 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -667,7 +667,7 @@
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 = []