mirror of https://github.com/zulip/zulip.git
lint: Remove custom python rule for json_success without parameter.
As a preparatory step to refactoring json_success to accept request as a parameter, removes custom lint python check for calling json_success without a parameter.
This commit is contained in:
parent
c532829c35
commit
6f7e53c517
|
@ -325,12 +325,6 @@ python_rules = RuleList(
|
|||
"good_lines": ["id = alice.user_id"],
|
||||
"bad_lines": ["id = alice.userid"],
|
||||
},
|
||||
{
|
||||
"pattern": r"json_success\({}\)",
|
||||
"description": "Use json_success() to return nothing",
|
||||
"good_lines": ["return json_success()"],
|
||||
"bad_lines": ["return json_success({})"],
|
||||
},
|
||||
# To avoid JsonableError(_variable) and JsonableError(_(variable))
|
||||
{
|
||||
"pattern": r"\WJsonableError\(_\(?\w.+\)",
|
||||
|
|
Loading…
Reference in New Issue