zulip/tools/tests
Aditya Bansal b9f1acb300 linter: Enforce 2 space indents on tags spread over multiple lines.
We make some specific cases of tags use 2 space indents.
The case description:
* A tag with opening tag spread over multiple lines and closing tag
on the same line as of the closing angle bracket of the opening tag.
* A tag with opening tag spread over multiple lines and closing tag
not on the same line as of the closing angle bracket of the opening
tag.

Example:
Case 1:

Not linted:
<button type="button"
class="btn btn-primary btn-small">{{t "Yes" }}</button>

After linting:
<button type="button"
  class="btn btn-primary btn-small">{{t "Yes" }}</button>

Case 2:

Before linting:
<div class = "foo"
     id = "bar"
     role = "whatever">
     {{ bla }}
</div>

After linting:
<div class = "foo"
  id = "bar"
  role = "whatever">
    {{ bla }}
</div>
2018-04-07 20:08:44 -07:00
..
test_template_data Lint for duplicate ids in templates. 2017-01-13 17:00:22 -08:00
__init__.py
test_capitalization_checker.py check-capitalization: Check for banned words. 2018-03-11 15:34:47 -07:00
test_css_parser.py tools/tests: Use Python 3 syntax for typing. 2018-02-19 10:17:03 -08:00
test_html_branches.py tools/tests: Use Python 3 syntax for typing. 2018-02-19 10:17:03 -08:00
test_linter_custom_check.py tools/tests: Use Python 3 syntax for typing. 2018-02-19 10:17:03 -08:00
test_pretty_print.py linter: Enforce 2 space indents on tags spread over multiple lines. 2018-04-07 20:08:44 -07:00
test_template_parser.py tools/tests: Use Python 3 syntax for typing. 2018-02-19 10:17:03 -08:00