squizlabs/HTML_CodeSniffer — pull request #37 by lwright-sq (2012-09-10 04:15:26+00:00)
Title: Add ability to ignore certain message codes using ignoreMsgCodes auditor run option

This option is an array containing RegExp objects (or strings interpreted as RegExp's); if any is matched it will be excluded.

eg.
To remove colour contrast-related errors (in SC 1.4.3, 1.4.6) you could do this:

var options = {
ignoreMsgCodes: [
/Guideline1_4\.1_4_3/,
/Guideline1_4\.1_4_6/
]
};
HTMLCSAuditor.run('WCAG2AAA', source, options);