mirror of https://github.com/zulip/zulip.git
Run whitespace linters on html files.
This commit is contained in:
parent
ba30713078
commit
4fa63c29ca
|
@ -46,7 +46,7 @@ puppet/puppet-common/tests/
|
||||||
""".split()
|
""".split()
|
||||||
|
|
||||||
by_lang = lister.list_files(args, modified_only=options.modified, use_shebang=True,
|
by_lang = lister.list_files(args, modified_only=options.modified, use_shebang=True,
|
||||||
ftypes=['py', 'sh', 'js', 'pp', 'css', 'handlebars'], group_by_ftype=True, exclude=exclude)
|
ftypes=['py', 'sh', 'js', 'pp', 'css', 'handlebars', 'html'], group_by_ftype=True, exclude=exclude)
|
||||||
|
|
||||||
# Invoke the appropriate lint checker for each language,
|
# Invoke the appropriate lint checker for each language,
|
||||||
# and also check files for extra whitespace.
|
# and also check files for extra whitespace.
|
||||||
|
@ -148,6 +148,7 @@ bash_rules = [
|
||||||
]
|
]
|
||||||
css_rules = whitespace_rules
|
css_rules = whitespace_rules
|
||||||
handlebars_rules = whitespace_rules
|
handlebars_rules = whitespace_rules
|
||||||
|
html_rules = whitespace_rules
|
||||||
|
|
||||||
def check_custom_checks():
|
def check_custom_checks():
|
||||||
failed = False
|
failed = False
|
||||||
|
@ -172,6 +173,10 @@ def check_custom_checks():
|
||||||
if custom_check_file(fn, handlebars_rules):
|
if custom_check_file(fn, handlebars_rules):
|
||||||
failed = True
|
failed = True
|
||||||
|
|
||||||
|
for fn in by_lang['html']:
|
||||||
|
if custom_check_file(fn, html_rules):
|
||||||
|
failed = True
|
||||||
|
|
||||||
return failed
|
return failed
|
||||||
|
|
||||||
lint_functions = {}
|
lint_functions = {}
|
||||||
|
|
Loading…
Reference in New Issue