diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 03:04:04 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 03:04:04 +0000 |
commit | 9f919cc7ed0db35c755a3b5add33fda6a44d4c1d (patch) | |
tree | 9cac2ba74e0a89f66ab77a550352d75de1006b4a /PRESUBMIT.py | |
parent | d48e6e247a99da0329cb3b1baa4533a1ffdec49f (diff) | |
download | chromium_src-9f919cc7ed0db35c755a3b5add33fda6a44d4c1d.zip chromium_src-9f919cc7ed0db35c755a3b5add33fda6a44d4c1d.tar.gz chromium_src-9f919cc7ed0db35c755a3b5add33fda6a44d4c1d.tar.bz2 |
Add a presubmit check for tabs in grd files.
Review URL: https://chromiumcodereview.appspot.com/19741006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214530 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r-- | PRESUBMIT.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index efb665a..0b1f6c7 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -834,6 +834,11 @@ def _CommonChecks(input_api, output_api): results.extend(_CheckNoAbbreviationInPngFileName(input_api, output_api)) results.extend(_CheckForInvalidOSMacros(input_api, output_api)) results.extend(_CheckAddedDepsHaveTargetApprovals(input_api, output_api)) + results.extend( + input_api.canned_checks.CheckChangeHasNoTabs( + input_api, + output_api, + source_file_filter=lambda x: x.LocalPath().endswith('.grd'))) if any('PRESUBMIT.py' == f.LocalPath() for f in input_api.AffectedFiles()): results.extend(input_api.canned_checks.RunUnitTestsInDirectory( |