-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue for lints for the html!
macro.
#1334
Comments
This crate might be of use in adding these errors (works on both stable and nightly). |
Just keep in mind that warnings will still only be emitted on nightly but if we use it we don't have to wait for diagnostics to hit stable. |
The
From my understanding the crate works on stable using a handcrafted API. |
The Procedural Macro Diagnostics RFC proposes support for "Lint-Associated Warnings" which works with the The documentation says:
There are still a few benefits we get from using the crate:
|
Unblocking this issue and marking the feature as accepted. I agree with @siku2 that being nightly provides an opt-in behaviour and allows us to start building up lints. Once the diagnostics API stabilises the switch, hopefully, will be relatively simply and we can hook into that API to provide ways to silence the warnings. |
Now that #1748 is merged, we have main 2 areas to improve on:
|
Describe the feature you'd like
The
html!
macro should output warnings. The developer should be able to ignore these warnings as they see fit.These warnings should integrate into the compiler and work just as any other lint/warning would.
Is your feature request related to a problem? Please describe. (Optional)
Often it's easy to make mistakes based on
Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.
Additional context (Optional)
This is blocked on the diagnostics API of rustc becoming available in a stable release of Rust.
Implemented lints include:
<a>
tags have ahref
attribute (this is to enable screen readers to work on websites).<img>
tags have analt
attribute (this is to enable screen readers to work on websites).Possible lints include:
Possible sources of inspiration for lints include:
Please feel free to suggest lint ideas below, or further updates on the status of the diagnostics API.
The text was updated successfully, but these errors were encountered: