lint-all: Improve regular expression for json_error.

This commit is contained in:
Tim Abbott 2016-07-28 16:19:42 -07:00
parent 0aa72cb347
commit 568dd0e142
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ python_rules = cast(RuleList, [
{'pattern': '\Wjson_error\(_\(?\w+\)',
'exclude': set(['tools/lint-all']),
'description': 'Argument to json_error should be a literal string enclosed by _()'},
{'pattern': '\Wjson_error\([^_].+\)',
{'pattern': '\Wjson_error\([^_].+[),]$',
'exclude': set(['tools/lint-all']),
'exclude_line': set([
# function definition