wbotelhos/validaty

View on GitHub
src/jquery.validaty.js

Summary

Maintainability
A
1 hr
Test Coverage

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

      There are no issues that match your filters.

      Category
      Status