diff options
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r-- | PRESUBMIT.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 1f51057..7d6331e 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -22,8 +22,7 @@ def _CheckNoInterfacesInBase(input_api, output_api): pattern = input_api.re.compile(r'^\s*@interface', input_api.re.MULTILINE) files = [] for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile): - if (f.LocalPath().find('base/') != -1 and - f.LocalPath().find('base/test/') == -1 and + if (f.LocalPath().startswith('base/') and not f.LocalPath().endswith('_unittest.mm')): contents = input_api.ReadFile(f) if pattern.search(contents): |