zulip/tools/linter_lib
Robert Hönig 41e6704b99 custom linter rules test: Add pattern test.
The pattern test method `test_rule_patterns` tests each rule by
fetching two strings from it: `test_good` and `test_bad`. Each
string is then presented as an input file to `custom_check_file`,
which should return True or False.
All lines in a string need to end with `\n`. Since the linter
expects an additional newline at the end of a file, the test case
adds `\n` to each string on top of that.

Fixes #6320.
2017-09-25 10:53:06 +02:00
..
__init__.py Extract tools/linter_lib/custom_check.py. 2017-06-05 09:20:21 -07:00
custom_check.py custom linter rules test: Add pattern test. 2017-09-25 10:53:06 +02:00
exclude.py api: Update lint and analysis code to forget about now-gone files. 2017-07-31 21:24:52 -07:00
pep8.py mypy: Add assertions relating to Popen.stdout with subprocess.PIPE use. 2017-08-07 21:27:50 -07:00
printer.py linter: Create error printing library. 2017-07-06 13:46:10 +08:00
pyflakes.py lint: Fix problematic merging of pyflakes stdout/stderr. 2017-08-29 10:44:50 -07:00