Ensure .mk files aren't included in the tab character check.

R=maruel@chromium.org
TEST=presubmit checks pass

Review URL: http://codereview.chromium.org/10005029

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@131171 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
cmp@chromium.org 13 years ago
parent 1353e9f4d2
commit cb5e57ca95

@ -271,8 +271,9 @@ def CheckChangeHasNoTabs(input_api, output_api, source_file_filter=None):
# 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,

Loading…
Cancel
Save