studpad/studpad

View on GitHub
app/assets/javascripts/jquery.query-object.js

Summary

Maintainability
C
1 day
Test Coverage

Function query has 211 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  jQuery.query = new function() {
    var is = function(o, t) {
      return o != undefined && o !== null && (!!t ? o.constructor == t : true);
    };
    var parse = function(path) {
Severity: Major
Found in app/assets/javascripts/jquery.query-object.js - About 1 day to fix

    Function set has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var set = function(target, tokens, value) {
          var o, token = tokens.shift();
          if (typeof target != 'object') target = null;
          if (token === "") {
            if (!target) target = [];
    Severity: Minor
    Found in app/assets/javascripts/jquery.query-object.js - About 1 hr to fix

      Function toString has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            toString: function() {
              var i = 0, queryString = [], chunks = [], self = this;
              var encode = function(str) {
                str = str + "";
                str = encodeURIComponent(str);
      Severity: Minor
      Found in app/assets/javascripts/jquery.query-object.js - About 1 hr to fix

        Avoid deeply nested control flow statements.
        Open

                  for (var i = 0; i < target.length; ++i) {
                    temp[i] = target[i];
                  }
        Severity: Major
        Found in app/assets/javascripts/jquery.query-object.js - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status