lint: Enforce no external resources in CSS.

This commit is contained in:
Tim Abbott 2016-12-15 22:02:10 -08:00
parent 105ef7caae
commit 81dbf8c80a
1 changed files with 2 additions and 0 deletions

View File

@ -346,6 +346,8 @@ def build_custom_checkers(by_lang):
'description': "Missing whitespace after : in CSS"},
{'pattern': '[a-z]{',
'description': "Missing whitespace before '{' in CSS."},
{'pattern': 'https://',
'description': "Zulip CSS should have no dependencies on external resources"},
{'pattern': '^[ ][ ][a-zA-Z0-9]',
'description': "Incorrect 2-space indentation in CSS",
'exclude': set(['static/styles/thirdparty-fonts.css']),