Applied a bunch of suggestions from Simon.

This commit is contained in:
Per Lundberg 2016-04-21 22:42:15 +03:00
parent d0489f1160
commit 4643737a1b
11 changed files with 384 additions and 389 deletions

View file

@ -277,9 +277,7 @@ def check_toml(file_name, lines):
def check_rust(file_name, lines):
if not file_name.endswith(".rs") or \
file_name.endswith("properties.mako.rs") or \
file_name.find("properties/longhand") or \
file_name.find("properties/shorthand") or \
file_name.endswith(".mako.rs") or \
file_name.endswith(os.path.join("style", "build.rs")) or \
file_name.endswith(os.path.join("geckolib", "build.rs")) or \
file_name.endswith(os.path.join("unit", "style", "stylesheets.rs")):