axe-core-npm icon indicating copy to clipboard operation
axe-core-npm copied to clipboard

Report unused disables

Open gemal opened this issue 4 years ago • 1 comments

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

gemal avatar Mar 02 '21 15:03 gemal

Hey @gemal,

Apologies for the delay,

Very interesting idea! We will investigate and get back to you.

Gabe

Zidious avatar May 12 '22 13:05 Zidious