mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Ignore a few things in in tidy check.
We need to ignore geckolib/tools, otherwise we need to clobber stuff to avoid a bunch of tidy errors in rust-bindgen etc. We also preemtively ignore the soon-to-be-added build.rs for the same reason it's ignored in style/, and gecko_style_structs.rs for the same reason that bindings.rs is ignored.
This commit is contained in:
parent
b59bd294e1
commit
d8cf9729ac
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,7 @@ ignored_files = [
|
||||||
# Generated and upstream code combined with our own. Could use cleanup
|
# Generated and upstream code combined with our own. Could use cleanup
|
||||||
os.path.join(".", "ports", "gonk", "src", "native_window_glue.cpp"),
|
os.path.join(".", "ports", "gonk", "src", "native_window_glue.cpp"),
|
||||||
os.path.join(".", "ports", "geckolib", "bindings.rs"),
|
os.path.join(".", "ports", "geckolib", "bindings.rs"),
|
||||||
|
os.path.join(".", "ports", "geckolib", "gecko_style_structs.rs"),
|
||||||
os.path.join(".", "resources", "hsts_preload.json"),
|
os.path.join(".", "resources", "hsts_preload.json"),
|
||||||
os.path.join(".", "tests", "wpt", "metadata", "MANIFEST.json"),
|
os.path.join(".", "tests", "wpt", "metadata", "MANIFEST.json"),
|
||||||
os.path.join(".", "tests", "wpt", "metadata-css", "MANIFEST.json"),
|
os.path.join(".", "tests", "wpt", "metadata-css", "MANIFEST.json"),
|
||||||
|
@ -60,6 +61,8 @@ ignored_dirs = [
|
||||||
# Generated and upstream code combined with our own. Could use cleanup
|
# Generated and upstream code combined with our own. Could use cleanup
|
||||||
os.path.join(".", "target"),
|
os.path.join(".", "target"),
|
||||||
os.path.join(".", "ports", "cef"),
|
os.path.join(".", "ports", "cef"),
|
||||||
|
# Tooling, generated locally from external repos.
|
||||||
|
os.path.join(".", "ports", "geckolib", "tools"),
|
||||||
# Hidden directories
|
# Hidden directories
|
||||||
os.path.join(".", "."),
|
os.path.join(".", "."),
|
||||||
]
|
]
|
||||||
|
@ -260,6 +263,7 @@ def check_rust(file_name, lines):
|
||||||
if not file_name.endswith(".rs") or \
|
if not file_name.endswith(".rs") or \
|
||||||
file_name.endswith("properties.mako.rs") or \
|
file_name.endswith("properties.mako.rs") or \
|
||||||
file_name.endswith(os.path.join("style", "build.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")):
|
file_name.endswith(os.path.join("unit", "style", "stylesheets.rs")):
|
||||||
raise StopIteration
|
raise StopIteration
|
||||||
comment_depth = 0
|
comment_depth = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue