wbotelhos/validaty

View on GitHub

Showing 2 of 2 total issues

Function _process has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  methods._process = function(fields, evt) {
    fields = (fields && fields.length && fields) || this.inputs;

    var distinct = methods._distinct.call(this, fields);
    var submit   = evt && evt.type === 'submit';
Severity: Minor
Found in src/jquery.validaty.js - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Open

                if (isNaN(args[j])) {
                  args[j] = args[j].replace('%20', ' ');
                } else if (name !== 'equal') {
                  args[j] = parseInt(args[j]);
                }
    Severity: Major
    Found in src/jquery.validaty.js - About 45 mins to fix
      Severity
      Category
      Status
      Source
      Language