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:
Lauryn Menard 2022-02-01 17:07:00 +01:00 committed by Tim Abbott
parent c532829c35
commit 6f7e53c517
1 changed files with 0 additions and 6 deletions

View File

@ -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.+\)",