Omit <include> lines over 80+ columns.

R=dpranke@chromium.org
BUG=none
TEST=no whining about <include src="long/path/name.js">

Review URL: https://codereview.chromium.org/579383004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@292080 0039d316-1c4b-4281-b951-d872f2087c98
changes/01/332501/1
dbeam@chromium.org 11 years ago
parent 2cd0b8ed46
commit b5ccc9b1ab

@ -364,6 +364,9 @@ def CheckLongLines(input_api, output_api, maxlen, source_file_filter=None):
if 'url(' in line and file_extension == 'css':
return True
if '<include' in line and file_extension in ('css', 'html', 'js'):
return True
return input_api.re.match(
r'.*[A-Za-z][A-Za-z_0-9]{%d,}.*' % long_symbol, line)

Loading…
Cancel
Save