zulip/tools/lib
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
..
__init__.py Extract tools/lib/template_parser.py. 2016-08-01 16:27:50 -07:00
capitalization.py check-capitalization: Exclude certain uses of the word "realm". 2018-03-16 16:58:49 -07:00
css_parser.py mypy: Add explicit Optional for default=None parameters in various files. 2018-03-28 12:31:51 -07:00
find_add_class.py tools: Remove print_function. 2017-09-29 15:44:56 -07:00
gitlint-rules.py lint: Allow revert commit messages in gitlint. 2018-02-13 09:21:01 -08:00
graph.py Remove inheritance from object. 2017-11-06 08:53:48 -08:00
html_branches.py Remove inheritance from object. 2017-11-06 08:53:48 -08:00
html_grep.py Remove inheritance from object. 2017-11-06 08:53:48 -08:00
pretty_print.py linter: Enforce 2 space indents on tags spread over multiple lines. 2018-04-07 20:08:44 -07:00
provision.py provision.py: Remove duplicate install candidated from APT_DEPENDENCIES. 2018-02-12 14:40:26 -08:00
sanity_check.py tools/lib: Text-wrap long lines exceeding 110. 2017-11-10 16:24:09 -08:00
template_parser.py linter: Make multiline handlebar singleton tags use 2 space indentation. 2018-04-07 20:08:38 -07:00
test_script.py provision_version: Move to under UUID_VAR_PATH. 2017-10-17 21:15:58 -07:00
test_server.py mypy: Add explicit Optional for default=None parameters in various files. 2018-03-28 12:31:51 -07:00