mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
Rust tidy: disallow assignment = in the beginning of line
This commit is contained in:
parent
6d4ccab2b7
commit
adcedd8314
3 changed files with 6 additions and 0 deletions
|
@ -520,6 +520,8 @@ def check_rust(file_name, lines):
|
|||
lambda match, line: is_attribute),
|
||||
(r"=[A-Za-z0-9\"]", "missing space after =",
|
||||
lambda match, line: is_attribute),
|
||||
(r"^=\s", "no = in the beginning of line",
|
||||
lambda match, line: not is_comment),
|
||||
# ignore scientific notation patterns like 1e-6
|
||||
(r"[A-DF-Za-df-z0-9]-", "missing space before -",
|
||||
lambda match, line: not is_attribute),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue