Skip to content

Report unused disables #202

Open
Open
@gemal

Description

@gemal

if I use axe like this:
axe --disable aria-input-field-name,aria-required-children,color-contrast,heading-order,landmark-one-main,region http://example.com

it would be very useful if axe could report any unused disable so that they could be removed.
fx if example.com did not need color-contrast to succeed

phpstan has this very useful feature:
https://phpstan.org/user-guide/ignoring-errors#reporting-unused-ignores

axe could have reportUnmatchedDisable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions