mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Issue #13350 Report tidy error for space after (
This commit is contained in:
parent
7b98c8a788
commit
0ac212afb1
4 changed files with 13 additions and 1 deletions
|
@ -483,6 +483,7 @@ def check_rust(file_name, lines):
|
|||
(r"\{[A-Za-z0-9_]+\};", "use statement contains braces for single import",
|
||||
lambda match, line: line.startswith('use ')),
|
||||
(r"^\s*else {", "else braces should be on the same line", no_filter),
|
||||
(r"[^$ ]\([ \t]", "extra space after (", no_filter),
|
||||
]
|
||||
|
||||
for pattern, message, filter_func in regex_rules:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue