Index: presubmit_canned_checks.py |
=================================================================== |
--- presubmit_canned_checks.py (revision 131044) |
+++ presubmit_canned_checks.py (working copy) |
@@ -271,8 +271,9 @@ |
# It's the default filter. |
source_file_filter = input_api.FilterSourceFile |
def filter_more(affected_file): |
- return (not input_api.os_path.basename(affected_file.LocalPath()) in |
- ('Makefile', 'makefile') and |
+ basename = input_api.os_path.basename(affected_file.LocalPath()) |
+ return (not (basename in ('Makefile', 'makefile') or |
+ basename.endswith('.mk')) and |
source_file_filter(affected_file)) |
tabs = _FindNewViolationsOfRule(lambda _, line : '\t' not in line, |