zulip/tools/tests
Steve Howell ba51078418 Simplify CSS linter and clean up CSS.
The CSS linter was pretty hard to reason about.  It was
pretty flexible about certain things, but then it would
prevent seemingly innocuous code from getting checked in.

This commit overhauls the pretty-printer to be more composable,
where every object in the AST knows how to render itself.  It
also cleans up a little bit of the pre_fluff/post_fluff logic
in the parser itself, so comments are more likely to be "attached"
to the AST node that make sense.

The linter is actually a bit more finicky about newlines, but
this is mostly a good thing, as most of the variations before
this commit were pretty arbitrary.
2017-11-13 12:43:43 -08:00
..
test_template_data Lint for duplicate ids in templates. 2017-01-13 17:00:22 -08:00
__init__.py Add test coverage for parsers in tools/lib. 2016-08-04 10:47:09 -07:00
test_capitalization_checker.py api: Remove root_domain_uri from API page links. 2017-08-28 14:13:37 -07:00
test_css_parser.py Simplify CSS linter and clean up CSS. 2017-11-13 12:43:43 -08:00
test_html_branches.py tools: Remove print_function. 2017-09-29 15:44:56 -07:00
test_linter_custom_check.py linter: Fix tests ignoring rules with `include_only`. 2017-11-08 11:16:18 -08:00
test_pretty_print.py tools: Remove print_function. 2017-09-29 15:44:56 -07:00
test_template_parser.py tools: Remove print_function. 2017-09-29 15:44:56 -07:00