microsoft / axe-windows

Automated accessibility testing engine for Windows applications
MIT License
136 stars 62 forks source link

[General Question] How to disable rules #984

Closed ChristoWolf closed 10 months ago

ChristoWolf commented 10 months ago

Is there any API to disable rules on a config or scan level?

Hi!

I looked a bit through the code, but couldn't find out how to disable rules. Would appreciate any help :)

v-prachin commented 10 months ago

Acknowledged the issue and looking into it.

v-prachin commented 10 months ago

The option to disable rules is currently unavailable. We kindly request you to create a separate issue for any rule that is encountering errors or not functioning correctly. This will enable us to conduct an assessment of the issue and implement the necessary corrective measures for the specific rule under consideration.

ChristoWolf commented 10 months ago

Hi @v-prachin!

Thanks for looking into it, looks like I did not miss this while looking through the code. The rules are fine as far as I can see, it's just that I would like to disable some whenever needed.

For now, I will just filter the ScanResults on my own, which is sufficient.