diff options
author | Travis Dean <travis.j.dean@gmail.com> | 2016-07-04 17:05:20 -0400 |
---|---|---|
committer | Travis Dean <travis.j.dean@gmail.com> | 2016-07-04 18:38:13 -0400 |
commit | 664235821731c8d5eaf6d55852a9ee43b30a77f2 (patch) | |
tree | 4583dd60d62d5b11622ef7ab82ed61bbbf83fa37 /python/tidy/servo_tidy/tidy.py | |
parent | 80cb0cf8214fd52d2884724614c40cb278ee7575 (diff) | |
download | servo-664235821731c8d5eaf6d55852a9ee43b30a77f2.tar.gz servo-664235821731c8d5eaf6d55852a9ee43b30a77f2.zip |
Add style check, test, and code fixes for an else brace check.
Diffstat (limited to 'python/tidy/servo_tidy/tidy.py')
-rw-r--r-- | python/tidy/servo_tidy/tidy.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index 751039c0ad1..3b1b443eb87 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -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: |