mirror of https://github.com/zulip/zulip.git
linter: Add a rule to check render_to_response.
This commit is contained in:
parent
24c2e62ae1
commit
38572311f9
|
@ -425,6 +425,10 @@ def build_custom_checkers(by_lang):
|
|||
'description': "Don't use datetime in backend code.\n"
|
||||
"See https://zulip.readthedocs.io/en/latest/code-style.html#naive-datetime-objects",
|
||||
},
|
||||
{'pattern': 'render_to_response\(',
|
||||
'description': "Use render() instead of render_to_response().",
|
||||
'exclude': set(['tools/lint-all']),
|
||||
},
|
||||
# This rule might give false positives in virtualenv setup files which should be excluded,
|
||||
# and comments which should be rewritten to avoid use of "python2", "python3", etc.
|
||||
{'pattern': 'python[23]',
|
||||
|
|
Loading…
Reference in New Issue