lib/runner.js
function configureHtmlCodeSniffer() {
			if (options.rules.length && options.standard !== 'Section508') {
				for (const rule of options.rules) {
					if (window.HTMLCS_WCAG2AAA.sniffs.includes(rule)) {
						window[`HTMLCS_${options.standard}`].sniffs[0].include.push(rule);
					} else {
						throw new Error(`${rule} is not a valid WCAG 2.0 rule`);
					}
				}
			}
		}
function configureHtmlCodeSniffer() {
			if (options.rules.length && options.standard !== 'Section508') {
				for (const rule of options.rules) {
					if (window.HTMLCS_WCAG2AAA.sniffs.includes(rule)) {
						window[`HTMLCS_${options.standard}`].sniffs[0].include.push(rule);
					} else {
						throw new Error(`${rule} is not a valid WCAG 2.0 rule`);
					}
				}
			}
		}
function configureHtmlCodeSniffer ( ) { if ( options . rules . length && options . standard !== 'Section508' ) { for ( const rule of options . rules ) { if ( window . HTMLCS_WCAG2AAA . sniffs . includes ( rule ) ) { window [ ` ${ options . standard } ` ] . sniffs [ 0 ] . include . push ( rule ) ; } else { throw new Error ( ` ${ rule } ` ) ; } } } }
Configure HTML CodeSniffer.
@private
@returns {Undefined} Returns nothing.
Configure HTML CodeSniffer .