pa11y-dashboard icon indicating copy to clipboard operation
pa11y-dashboard copied to clipboard

Ignore Rules Only Apply to Errors

Open jbuck94 opened this issue 8 years ago • 7 comments

It seems like ignored rules only apply to errors. Is there a way to set rules in the ignore list to be ignored throughout the system (ie. in Errors, Warnings, and Notices)?

ignored

jbuck94 avatar Nov 09 '16 21:11 jbuck94

Hi @jbuck94, this is odd – Pa11y should ignore warnings and notices as well as errors. I'll take a look for you

rowanmanning avatar Nov 10 '16 11:11 rowanmanning

Thanks! It's only on the dashboard - works correctly when using the CLI. 

jbuck94 avatar Nov 10 '16 11:11 jbuck94

For me it appears to ignore the fact that I have told it to ignore a rule.

iandevlin avatar Feb 14 '17 08:02 iandevlin

Actually looking at this again the ignored rule does not match the code of the error, which is why it's still appearing. It may be that you need to check multiple boxes in the ignored rules section of the task?

rowanmanning avatar Feb 14 '17 11:02 rowanmanning

Ignore rules do not seem to be applied for rules of type: WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.[NodeName].Name

I am currently ignoring Principle 4 as I will be working on that later, but Pa11y is still checking against Principle 4

Highlighted errors are of type [NodeName].Name: image

Ignore List: image

morsmodr avatar Aug 08 '17 22:08 morsmodr

Ah OK, looks like our list of rules is incomplete, we probably need an entry for each type of node.

rowanmanning avatar Oct 05 '17 09:10 rowanmanning

Can we just make the parser smart enough to check the ignored rules and if they contain [NodeName] ignore for all node types?

mikeya avatar Feb 26 '21 15:02 mikeya