mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Add style check, test, and code fixes for an else brace check.
This commit is contained in:
parent
80cb0cf821
commit
6642358217
9 changed files with 26 additions and 20 deletions
|
@ -415,6 +415,7 @@ def check_rust(file_name, lines):
|
|||
(r"^&&", "operators should go at the end of the first line", no_filter),
|
||||
(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),
|
||||
]
|
||||
|
||||
for pattern, message, filter_func in regex_rules:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue