sazze/node-pm

View on GitHub

Showing 297 of 342 total issues

Consider simplifying this complex logical expression.
Open

      if (this[0]) {
        i = v.buildFragment(e, this, l), o = i.fragment, s = o.firstChild, o.childNodes.length === 1 && (o = s);
        if (s) {
          n = n && v.nodeName(s, "tr");
          for (u = i.cacheable || c - 1; a < c; a++) r.call(n && v.nodeName(this[a], "table") ? Lt(this[a], "tbody") : this[a], a === u ? o : v.clone(o, !0, !0))
Severity: Major
Found in docs/scripts/jquery.min.js - About 1 hr to fix

    Function needsSignature has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

    function needsSignature( doclet ) {
        var needsSig = false;
    
        // function and class definitions always get a signature
        if ( doclet.kind === 'function' || doclet.kind === 'class' ) {
    Severity: Minor
    Found in docs/template/publish.js - About 55 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function exports has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

    module.exports = (function() {
      "use strict";
    
      var cluster = master.cluster;
    
    
    Severity: Minor
    Found in lib/processEvents.js - About 55 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        access: function(e, n, r, i, s, o, u) {
    Severity: Major
    Found in docs/template/static/scripts/jquery.min.js - About 50 mins to fix

      Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          access: function(e, n, r, i, s, o, u) {
      Severity: Major
      Found in docs/scripts/jquery.min.js - About 50 mins to fix

        Avoid deeply nested control flow statements.
        Open

                    if (one_map[key][i] !== two_map[key][i]) {
                      return false;
                    }
        Severity: Major
        Found in docs/template/static/scripts/URI.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                  if (!n) for (r in a) {
                    s = r.split(" ");
                    if (s[1] === i) {
                      n = a[u + " " + s[0]] || a["* " + s[0]];
                      if (n) {
          Severity: Major
          Found in docs/template/static/scripts/jquery.min.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                        if (!e) return S.apply(n, x.call(r, 0)), n;
            Severity: Major
            Found in docs/template/static/scripts/jquery.min.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                          if (data[key][i] !== undefined && unique[data[key][i] + ""] === undefined) {
                            t += "&" + URI.buildQueryParameter(key, data[key][i]);
                            if (duplicates !== true) {
                              unique[data[key][i] + ""] = true;
                            }
              Severity: Major
              Found in docs/template/static/scripts/URI.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                          for (; r < s; r++) if (i.relative[e[r].type]) break;
                Severity: Major
                Found in docs/template/static/scripts/jquery.min.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                              for (o = p.length - 1; o >= 0; --o) v.nodeName(p[o], "tbody") && !p[o].childNodes.length && p[o].parentNode.removeChild(p[o])
                  Severity: Major
                  Found in docs/template/static/scripts/jquery.min.js - About 45 mins to fix

                    Function ct has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        function ct(e, t, n, r, i, s) {
                    Severity: Minor
                    Found in docs/template/static/scripts/jquery.min.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                if (!s || !s.parentNode) return n;
                      Severity: Major
                      Found in docs/template/static/scripts/jquery.min.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                  if (s.id === f) return n.push(s), n
                        Severity: Major
                        Found in docs/template/static/scripts/jquery.min.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                      for (c = 0; c < t; ++c) if (i = m[c], o = f.match(i[1])) {
                                        b = i[0];
                                        break
                                      }
                          Severity: Major
                          Found in docs/template/static/scripts/prettify/prettify.js - About 45 mins to fix

                            Function kn has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              function kn(e, n, r, i, s, o) {
                            Severity: Minor
                            Found in docs/template/static/scripts/jquery.min.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                            if (e(t, r, u)) return t.sizset = !0, t;
                              Severity: Major
                              Found in docs/template/static/scripts/jquery.min.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                          if (n.events) for (s in n.events) l[s] ? v.event.remove(i, s) : v.removeEvent(i, s, n.handle);
                                Severity: Major
                                Found in docs/template/static/scripts/jquery.min.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                              for (s = 0, o = n.length; s < o; s++) while (r.indexOf(" " + n[s] + " ") >= 0) r = r.replace(" " + n[s] + " ", " ");
                                  Severity: Major
                                  Found in docs/template/static/scripts/jquery.min.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                  if (t.sizset) return t
                                    Severity: Major
                                    Found in docs/template/static/scripts/jquery.min.js - About 45 mins to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language