Commit Graph

8 Commits

Author SHA1 Message Date
Aman Agrawal
4424867adc zulint: Show errors in --verbose in a more readable format. 2019-06-27 14:42:33 -07:00
Aman Agrawal
8fc7c89874 zulint: Add --verbose arg to print good/bad lines in error.
This argument probably still needs some iteration, but it's already
useful.
2019-06-23 22:24:46 -07:00
Aman Agrawal
b5b3d9bd5f zulint: Refactor duplicate error printing code into print_error. 2019-06-23 21:59:00 -07:00
Aman Agrawal
dcd46f1c11 lint: Move shebang_rules out of RuleList class to generalize it.
shebang_rules was moved to custom_check.py. Also add shebang_rules only
to those rules which need it.
2019-06-18 11:27:59 -07:00
Aman Agrawal
db25c0c2ca lint: Combine functions in custom_rules into RuleList class.
This makes linting rules in zulint more general. Make necessary
changes in tools/lint and tools/custom_check.py to run with the new
RuleList class.

Modify tests for `RuleList` class. Tests only include minor changes to
test with the new class.
2019-06-18 11:27:50 -07:00
Aman Agrawal
a1fadc28ba lint: Make custom_rules.py pass all lint checks.
The functions here weren't checked by all linters when they were in
 `custom_check.py`. Hence, modified to pass all lint checks.
2019-05-29 16:53:59 -07:00
Aman Agrawal
90c3578a88 lint: Move custom_check_file from custom_check.py to custom_rules.py. 2019-05-29 16:53:59 -07:00
Aman Agrawal
42efb60665 lint: Extract general funcs from custom_check.py to zulint/custom_rules.py. 2019-05-29 16:53:59 -07:00