sazze/node-pm

View on GitHub

Showing 297 of 342 total issues

Function E has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function E(a) {
    var m =
    a.g;
    try {
      var e = M(a.h),
Severity: Major
Found in docs/scripts/prettify/prettify.js - About 2 hrs to fix

    Function highlightRecursive has 53 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                highlightNode: function highlightRecursive(node) {
                    var match,
                        languageId,
                        currentNodeCount,
                        j,
    Severity: Major
    Found in docs/template/static/scripts/sunlight.js - About 2 hrs to fix

      File master.js has 255 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      var fs = require('fs');
      var EventEmitter = require('events').EventEmitter;
      var util = require('util');
      var config = require('./config');
      var cluster = require('cluster');
      Severity: Minor
      Found in lib/master.js - About 2 hrs to fix

        Function highlightRecursive has 53 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    highlightNode: function highlightRecursive(node) {
                        var match,
                            languageId,
                            currentNodeCount,
                            j,
        Severity: Major
        Found in docs/scripts/sunlight.js - About 2 hrs to fix

          Function D has 52 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function D(a, m) {
              function e(a) {
                switch (a.nodeType) {
                case 1:
                  if (k.test(a.className)) break;
          Severity: Major
          Found in docs/template/static/scripts/prettify/prettify.js - About 2 hrs to fix

            Function D has 52 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function D(a, m) {
                function e(a) {
                  switch (a.nodeType) {
                  case 1:
                    if (k.test(a.className)) break;
            Severity: Major
            Found in docs/scripts/prettify/prettify.js - About 2 hrs to fix

              Function x has 51 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function x(a, m) {
                  function e(a) {
                    for (var l = a.d, p = [l, "pln"], d = 0, g = a.a.match(y) || [], r = {}, n = 0, z = g.length; n < z; ++n) {
                      var f = g[n],
                          b = r[f],
              Severity: Major
              Found in docs/template/static/scripts/prettify/prettify.js - About 2 hrs to fix

                Function x has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function x(a, m) {
                    function e(a) {
                      for (var l = a.d, p = [l, "pln"], d = 0, g = a.a.match(y) || [], r = {}, n = 0, z = g.length; n < z; ++n) {
                        var f = g[n],
                            b = r[f],
                Severity: Major
                Found in docs/scripts/prettify/prettify.js - About 2 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                          if (typeof e == "string" && !yt.test(e) && (v.support.htmlSerialize || !wt.test(e)) && (v.support.leadingWhitespace || !pt.test(e)) && !Nt[(vt.exec(e) || ["", ""])[1].toLowerCase()]) {
                            e = e.replace(dt, "<$1></$2>");
                            try {
                              for (; r < i; r++) n = this[r] || {}, n.nodeType === 1 && (v.cleanData(n.getElementsByTagName("*")), n.innerHTML = e);
                              n = 0
                  Severity: Critical
                  Found in docs/template/static/scripts/jquery.min.js - About 2 hrs to fix

                    Consider simplifying this complex logical expression.
                    Open

                            if (typeof e == "string" && !yt.test(e) && (v.support.htmlSerialize || !wt.test(e)) && (v.support.leadingWhitespace || !pt.test(e)) && !Nt[(vt.exec(e) || ["", ""])[1].toLowerCase()]) {
                              e = e.replace(dt, "<$1></$2>");
                              try {
                                for (; r < i; r++) n = this[r] || {}, n.nodeType === 1 && (v.cleanData(n.getElementsByTagName("*")), n.innerHTML = e);
                                n = 0
                    Severity: Critical
                    Found in docs/scripts/jquery.min.js - About 2 hrs to fix

                      Function Kn has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function Kn(e, t, n) {
                          var r, i = 0,
                              s = 0,
                              o = Xn.length,
                              u = v.Deferred().always(function() {
                      Severity: Minor
                      Found in docs/template/static/scripts/jquery.min.js - About 1 hr to fix

                        Function Kn has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          function Kn(e, t, n) {
                            var r, i = 0,
                                s = 0,
                                o = Xn.length,
                                u = v.Deferred().always(function() {
                        Severity: Minor
                        Found in docs/scripts/jquery.min.js - About 1 hr to fix

                          Function is has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            p.is = function(what) {
                              var ip = false;
                              var ip4 = false;
                              var ip6 = false;
                              var name = false;
                          Severity: Minor
                          Found in docs/template/static/scripts/URI.js - About 1 hr to fix

                            Function support has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              }), v.support = function() {
                                var t, n, r, s, o, u, a, f, l, c, h, p = i.createElement("div");
                                p.setAttribute("className", "t"), p.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", n = p.getElementsByTagName("*"), r = p.getElementsByTagName("a")[0];
                                if (!n || !r || !n.length) return {};
                                s = i.createElement("select"), o = s.appendChild(i.createElement("option")), u = p.getElementsByTagName("input")[0], r.style.cssText = "top:1px;float:left;opacity:.5", t = {
                            Severity: Minor
                            Found in docs/template/static/scripts/jquery.min.js - About 1 hr to fix

                              Function is has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                p.is = function(what) {
                                  var ip = false;
                                  var ip4 = false;
                                  var ip6 = false;
                                  var name = false;
                              Severity: Minor
                              Found in docs/scripts/URI.js - About 1 hr to fix

                                Function support has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  }), v.support = function() {
                                    var t, n, r, s, o, u, a, f, l, c, h, p = i.createElement("div");
                                    p.setAttribute("className", "t"), p.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", n = p.getElementsByTagName("*"), r = p.getElementsByTagName("a")[0];
                                    if (!n || !r || !n.length) return {};
                                    s = i.createElement("select"), o = s.appendChild(i.createElement("option")), u = p.getElementsByTagName("input")[0], r.style.cssText = "top:1px;float:left;opacity:.5", t = {
                                Severity: Minor
                                Found in docs/scripts/jquery.min.js - About 1 hr to fix

                                  Function normalizePath has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    p.normalizePath = function(build) {
                                      if (this._parts.urn) {
                                        return this;
                                      }
                                      if (!this._parts.path || this._parts.path === '/') {
                                  Severity: Minor
                                  Found in docs/template/static/scripts/URI.js - About 1 hr to fix

                                    Function restart has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    master.restart = function (callback) {
                                      if (restarting) {
                                        callback();
                                        return;
                                      }
                                    Severity: Minor
                                    Found in lib/master.js - About 1 hr to fix

                                      Function normalizePath has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        p.normalizePath = function(build) {
                                          if (this._parts.urn) {
                                            return this;
                                          }
                                          if (!this._parts.path || this._parts.path === '/') {
                                      Severity: Minor
                                      Found in docs/scripts/URI.js - About 1 hr to fix

                                        Function relativeTo has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          p.relativeTo = function(base) {
                                            var relative = this.clone();
                                            var properties = ['protocol', 'username', 'password', 'hostname', 'port'];
                                            var common, _base, _this, _base_diff, _this_diff;
                                            if (this._parts.urn) {
                                        Severity: Minor
                                        Found in docs/template/static/scripts/URI.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language