zulip/tools/lib
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
..
__init__.py Extract tools/lib/template_parser.py. 2016-08-01 16:27:50 -07:00
api_tests.py mypy: Fix future syntax errors and other minor mistakes. 2017-10-10 22:27:16 -07:00
capitalization.py tools: Remove absolute_import in most tools. 2017-09-29 12:28:43 -07:00
css_parser.py Simplify CSS linter and clean up CSS. 2017-11-13 12:43:43 -08:00
find_add_class.py tools: Remove print_function. 2017-09-29 15:44:56 -07:00
gitlint-rules.py lint: Check if the first word of a commit message is imperative. 2017-06-19 07:01:52 -04: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 tools/lib: Text-wrap long lines exceeding 110. 2017-11-10 16:24:09 -08:00
provision.py tools/lib: Text-wrap long lines exceeding 110. 2017-11-10 16:24:09 -08:00
sanity_check.py tools/lib: Text-wrap long lines exceeding 110. 2017-11-10 16:24:09 -08:00
template_parser.py Remove inheritance from object. 2017-11-06 08:53:48 -08:00
test_script.py provision_version: Move to under UUID_VAR_PATH. 2017-10-17 21:15:58 -07:00
test_server.py tools: Remove print_function. 2017-09-29 15:44:56 -07:00