mirror of https://github.com/zulip/zulip.git
lint-all: Improve regular expression for json_error.
This commit is contained in:
parent
0aa72cb347
commit
568dd0e142
|
@ -242,7 +242,7 @@ python_rules = cast(RuleList, [
|
||||||
{'pattern': '\Wjson_error\(_\(?\w+\)',
|
{'pattern': '\Wjson_error\(_\(?\w+\)',
|
||||||
'exclude': set(['tools/lint-all']),
|
'exclude': set(['tools/lint-all']),
|
||||||
'description': 'Argument to json_error should be a literal string enclosed by _()'},
|
'description': 'Argument to json_error should be a literal string enclosed by _()'},
|
||||||
{'pattern': '\Wjson_error\([^_].+\)',
|
{'pattern': '\Wjson_error\([^_].+[),]$',
|
||||||
'exclude': set(['tools/lint-all']),
|
'exclude': set(['tools/lint-all']),
|
||||||
'exclude_line': set([
|
'exclude_line': set([
|
||||||
# function definition
|
# function definition
|
||||||
|
|
Loading…
Reference in New Issue