src/validator.js
function (rule) {
    var msg = this.messages.render(rule);
    this.errors.add(rule.attribute, msg);
    this.errorCount++;
  }
function (rule) {
    var msg = this.messages.render(rule);
    this.errors.add(rule.attribute, msg);
    this.errorCount++;
  }
function ( rule ) { var msg = this . messages . render ( rule ) ; this . errors . add ( rule . attribute , msg ) ; this . errorCount ++ ; }
Add failure and error message for given rule

@param {Rule} rule
Add failure and error message for given rule