sazze/node-pm

View on GitHub

Showing 297 of 342 total issues

Avoid too many return statements within this function.
Open

        if ((f = i[3]) && Z && t.getElementsByClassName) return S.apply(n, x.call(t.getElementsByClassName(f), 0)), n
Severity: Major
Found in docs/scripts/jquery.min.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return v.isFunction(e) ? r.ready(e) : (e.selector !== t && (this.selector = e.selector, this.context = e.context), v.makeArray(e, this))
    Severity: Major
    Found in docs/scripts/jquery.min.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              if (i[2]) return S.apply(n, x.call(t.getElementsByTagName(e), 0)), n;
      Severity: Major
      Found in docs/scripts/jquery.min.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return true;
        Severity: Major
        Found in docs/scripts/URI.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return this;
          Severity: Major
          Found in docs/scripts/URI.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return this;
            Severity: Major
            Found in docs/scripts/URI.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return this;
              Severity: Major
              Found in docs/scripts/URI.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                          return this;
                Severity: Major
                Found in docs/scripts/URI.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return n.type = y, !o && !n.isDefaultPrevented() && (!p._default || p._default.apply(s.ownerDocument, r) === !1) && (y !== "click" || !v.nodeName(s, "a")) && v.acceptData(s) && h && s[y] && (y !== "focus" && y !== "blur" || n.target.offsetWidth !== 0) && !v.isWindow(s) && (c = s[h], c && (s[h] = null), v.event.triggered = y, s[y](), v.event.triggered = t, c && (s[h] = c)), n.result
                  Severity: Major
                  Found in docs/scripts/jquery.min.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return
                    Severity: Major
                    Found in docs/scripts/jquery.min.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                          return true;
                      Severity: Major
                      Found in docs/scripts/sunlight.javascript.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return !n || n.jquery ? (n || r).find(e) : this.constructor(n).find(e)
                        Severity: Major
                        Found in docs/scripts/jquery.min.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return this;
                          Severity: Major
                          Found in docs/scripts/URI.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return false;
                            Severity: Major
                            Found in docs/scripts/URI.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                            return false;
                              Severity: Major
                              Found in docs/scripts/URI.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return o && "set" in o && u && (s = o.set(e, r, n)) !== t ? s : (e.setAttribute(n, r + ""), r)
                                Severity: Major
                                Found in docs/scripts/jquery.min.js - About 30 mins to fix

                                  Function restart has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  master.restart = function (callback) {
                                    if (restarting) {
                                      callback();
                                      return;
                                    }
                                  Severity: Minor
                                  Found in lib/master.js - About 25 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

                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language