sazze/node-pm

View on GitHub

Showing 297 of 342 total issues

File jquery.min.js has 3469 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e, t) {
  function _(e) {
    var t = M[e] = {};
    return v.each(e.split(y), function(e, n) {
Severity: Major
Found in docs/template/static/scripts/jquery.min.js - About 1 wk to fix

    File jquery.min.js has 3469 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*! jQuery v1.8.3 jquery.com | jquery.org/license */
    (function(e, t) {
      function _(e) {
        var t = M[e] = {};
        return v.each(e.split(y), function(e, n) {
    Severity: Major
    Found in docs/scripts/jquery.min.js - About 1 wk to fix

      File URI.js has 1284 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * URI.js - Mutating URLs
       *
       * Version: 1.8.3
       *
      Severity: Major
      Found in docs/template/static/scripts/URI.js - About 3 days to fix

        File URI.js has 1284 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*!
         * URI.js - Mutating URLs
         *
         * Version: 1.8.3
         *
        Severity: Major
        Found in docs/scripts/URI.js - About 3 days to fix

          File sunlight.js has 884 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
           * Sunlight
           *    Intelligent syntax highlighting
           *
           * http://sunlightjs.com/
          Severity: Major
          Found in docs/template/static/scripts/sunlight.js - About 2 days to fix

            File sunlight.js has 884 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /**
             * Sunlight
             *    Intelligent syntax highlighting
             *
             * http://sunlightjs.com/
            Severity: Major
            Found in docs/scripts/sunlight.js - About 2 days to fix

              Function prototype has 420 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  Highlighter.prototype = (function() {
                      var parseNextToken = (function() {
                          function isIdentMatch(context) {
                              return context.language.identFirstLetter && context.language.identFirstLetter.test(context.reader.current());
                          }
              Severity: Major
              Found in docs/template/static/scripts/sunlight.js - About 2 days to fix

                Function prototype has 420 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    Highlighter.prototype = (function() {
                        var parseNextToken = (function() {
                            function isIdentMatch(context) {
                                return context.language.identFirstLetter && context.language.identFirstLetter.test(context.reader.current());
                            }
                Severity: Major
                Found in docs/scripts/sunlight.js - About 2 days to fix

                  Consider simplifying this complex logical expression.
                  Open

                        if (!s || s.nodeType !== 3 && s.nodeType !== 8) {
                          var u, a, f, l, c, h, p, d, m, g, y = n.type || n,
                              b = [];
                          if (Y.test(y + v.event.triggered)) return;
                          y.indexOf("!") >= 0 && (y = y.slice(0, -1), a = !0), y.indexOf(".") >= 0 && (b = y.split("."), y = b.shift(), b.sort());
                  Severity: Critical
                  Found in docs/template/static/scripts/jquery.min.js - About 1 day to fix

                    Consider simplifying this complex logical expression.
                    Open

                          if (!s || s.nodeType !== 3 && s.nodeType !== 8) {
                            var u, a, f, l, c, h, p, d, m, g, y = n.type || n,
                                b = [];
                            if (Y.test(y + v.event.triggered)) return;
                            y.indexOf("!") >= 0 && (y = y.slice(0, -1), a = !0), y.indexOf(".") >= 0 && (b = y.split("."), y = b.shift(), b.sort());
                    Severity: Critical
                    Found in docs/scripts/jquery.min.js - About 1 day to fix

                      Function publish has 205 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      exports.publish = function ( taffyData, opts, tutorials ) {
                          data = taffyData;
                      
                          conf['default'] = conf['default'] || {};
                      
                      
                      Severity: Major
                      Found in docs/template/publish.js - About 1 day to fix

                        File prettify.js has 480 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        var q = null;
                        window.PR_SHOULD_USE_CONTINUATION = !0;
                        (function() {
                          function L(a) {
                            function m(a) {
                        Severity: Minor
                        Found in docs/template/static/scripts/prettify/prettify.js - About 7 hrs to fix

                          File prettify.js has 480 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          var q = null;
                          window.PR_SHOULD_USE_CONTINUATION = !0;
                          (function() {
                            function L(a) {
                              function m(a) {
                          Severity: Minor
                          Found in docs/scripts/prettify/prettify.js - About 7 hrs to fix

                            File publish.js has 470 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            "use strict";
                            /**
                             * @module template/publish
                             * @type {*}
                             */
                            Severity: Minor
                            Found in docs/template/publish.js - About 7 hrs to fix

                              Function exports has 127 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              module.exports = (function () {
                                "use strict";
                              
                                var forkTimers = {};
                                var disconnectTimers = {};
                              Severity: Major
                              Found in lib/clusterEvents.js - About 5 hrs to fix

                                Function publish has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
                                Open

                                exports.publish = function ( taffyData, opts, tutorials ) {
                                    data = taffyData;
                                
                                    conf['default'] = conf['default'] || {};
                                
                                
                                Severity: Minor
                                Found in docs/template/publish.js - About 4 hrs 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 parseNextToken has 113 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        var parseNextToken = (function() {
                                            function isIdentMatch(context) {
                                                return context.language.identFirstLetter && context.language.identFirstLetter.test(context.reader.current());
                                            }
                                
                                
                                Severity: Major
                                Found in docs/template/static/scripts/sunlight.js - About 4 hrs to fix

                                  Function parseNextToken has 113 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          var parseNextToken = (function() {
                                              function isIdentMatch(context) {
                                                  return context.language.identFirstLetter && context.language.identFirstLetter.test(context.reader.current());
                                              }
                                  
                                  
                                  Severity: Major
                                  Found in docs/scripts/sunlight.js - About 4 hrs to fix

                                    Function ajax has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        ajax: function(e, n) {
                                          function T(e, n, s, a) {
                                            var l, y, b, w, S, T = n;
                                            if (E === 2) return;
                                            E = 2, u && clearTimeout(u), o = t, i = a || "", x.readyState = e > 0 ? 4 : 0, s && (w = An(c, x, s));
                                    Severity: Major
                                    Found in docs/template/static/scripts/jquery.min.js - About 3 hrs to fix

                                      Function ajax has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          ajax: function(e, n) {
                                            function T(e, n, s, a) {
                                              var l, y, b, w, S, T = n;
                                              if (E === 2) return;
                                              E = 2, u && clearTimeout(u), o = t, i = a || "", x.readyState = e > 0 ? 4 : 0, s && (w = An(c, x, s));
                                      Severity: Major
                                      Found in docs/scripts/jquery.min.js - About 3 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language