woothemes/woocommerce

View on GitHub
assets/js/jquery-serializejson/jquery.serializejson.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function deepSet has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    deepSet: function (o, keys, value, opts) {
      var key, nextKey, tail, lastIdx, lastVal, f;
      if (opts == null) { opts = {}; }
      f = $.serializeJSON;
      if (f.isUndefined(o)) { throw new Error("ArgumentError: param 'o' expected to be an object or array, found undefined"); }
Severity: Minor
Found in assets/js/jquery-serializejson/jquery.serializejson.js - About 1 hr to fix

    Function shouldSkipFalsy has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        shouldSkipFalsy: function($form, name, nameWithNoType, type, opts) {
    Severity: Minor
    Found in assets/js/jquery-serializejson/jquery.serializejson.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status