Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWrite custom lints #2386
Closed
Write custom lints #2386
Comments
|
It would be really useful to annotate various DOM helper traits as only usable by script or layout code (such as LayoutNodeHelpers). This could be done with an annotation like |
|
@jdm: I'll start working on the |
|
No code for that yet. |
|
Well, I have a branch for compile-fail tests that I could push. |
|
Work in progress: https://github.com/kmcallister/servo/tree/lint |
|
We have this now! Thanks @Manishearth for finishing this up. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First, implement loadable lints for Rust (rust-lang/rust#14067) or wait for someone else to do it. Then we can statically enforce safety properties beyond Rust's type system.
For example,
JS<T>has this currently unchecked requirement:Each new lint should have some compile-fail tests (#2385).