spec/lib/util/filterErrorsSpec.js
function noisyRule(context, parser, onError) {
    parser.on('startTag', (name, attrs, selfClosing, location) => {
      onError({
        rule: name,
        message: getAttribute(attrs, 'message') || '',
        location,
      });
    });
  }
function noisyRule(context, parser, onError) {
    parser.on('startTag', (name, attrs, selfClosing, location) => {
      onError({
        rule: name,
        message: getAttribute(attrs, 'message') || '',
        location,
      });
    });
  }
function noisyRule ( context , parser , onError ) { parser . on ( 'startTag' , ( name , attrs , selfClosing , location ) => { onError ( { rule : name , message : getAttribute ( attrs , 'message' ) || '' , location , } ) ; } ) ; }
This is a rule that reports an error for every startTag, with the ruleName equal to the startTag's name.
This is a rule that reports an error for every startTag with the ruleName equal to the startTag s name .