Skip to content

Tracking issue for lints for the html! macro. #1334

@teymour-aldridge

Description

@teymour-aldridge

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:

  • Checking that all <a> tags have a href attribute (this is to enable screen readers to work on websites).
  • Checking that all <img> tags have an alt 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-yew-macroArea: The yew-macro cratefeature-acceptedA feature request that has been accepted and needs implementingfeature-requestA feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions