sazze/node-pm

View on GitHub

Showing 297 of 342 total issues

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/scripts/URI.js - About 1 hr to fix

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

    master.start = function () {
      verbose('Starting master');
      var options = config;
      var workerFile = (options._ ? options._[0] : null);
    
    
    Severity: Minor
    Found in lib/master.js - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

                if (y || !n.namespace && !c.namespace || n.namespace_re && n.namespace_re.test(c.namespace)) n.data = c.data, n.handleObj = c, o = ((v.event.special[c.origType] || {}).handle || c.handler).apply(a.elem, g), o !== t && (n.result = o, o === !1 && (n.preventDefault(), n.stopPropagation()))
      Severity: Critical
      Found in docs/template/static/scripts/jquery.min.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                  if (y || !n.namespace && !c.namespace || n.namespace_re && n.namespace_re.test(c.namespace)) n.data = c.data, n.handleObj = c, o = ((v.event.special[c.origType] || {}).handle || c.handler).apply(a.elem, g), o !== t && (n.result = o, o === !1 && (n.preventDefault(), n.stopPropagation()))
        Severity: Critical
        Found in docs/scripts/jquery.min.js - About 1 hr to fix

          Function segment has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            p.segment = function(segment, v, build) {
              var separator = this._parts.urn ? ':' : '/';
              var path = this.path();
              var absolute = path.substring(0, 1) === '/';
              var segments = path.split(separator);
          Severity: Minor
          Found in docs/template/static/scripts/URI.js - About 1 hr to fix

            Function getScopeReaderFunction has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    function getScopeReaderFunction(scope, tokenName) {
                        var escapeSequences = scope[2] || [],
                            closerLength = scope[1].length,
                            closer = typeof(scope[1]) === "string" ? new RegExp(regexEscape(scope[1])) : scope[1].regex,
                            zeroWidth = scope[3] || false;
            Severity: Minor
            Found in docs/template/static/scripts/sunlight.js - About 1 hr to fix

              Function getScopeReaderFunction has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      function getScopeReaderFunction(scope, tokenName) {
                          var escapeSequences = scope[2] || [],
                              closerLength = scope[1].length,
                              closer = typeof(scope[1]) === "string" ? new RegExp(regexEscape(scope[1])) : scope[1].regex,
                              zeroWidth = scope[3] || false;
              Severity: Minor
              Found in docs/scripts/sunlight.js - About 1 hr to fix

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

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

                  Function segment has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    p.segment = function(segment, v, build) {
                      var separator = this._parts.urn ? ':' : '/';
                      var path = this.path();
                      var absolute = path.substring(0, 1) === '/';
                      var segments = path.split(separator);
                  Severity: Minor
                  Found in docs/scripts/URI.js - About 1 hr to fix

                    Function prettyPrint has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      window.prettyPrint = function(a) {
                        function m() {
                          for (var e = window.PR_SHOULD_USE_CONTINUATION ? l.now() + 250 : Infinity; p < h.length && l.now() < e; p++) {
                            var n = h[p],
                                k = n.className;
                    Severity: Minor
                    Found in docs/template/static/scripts/prettify/prettify.js - About 1 hr to fix

                      Function prettyPrint has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        window.prettyPrint = function(a) {
                          function m() {
                            for (var e = window.PR_SHOULD_USE_CONTINUATION ? l.now() + 250 : Infinity; p < h.length && l.now() < e; p++) {
                              var n = h[p],
                                  k = n.className;
                      Severity: Minor
                      Found in docs/scripts/prettify/prettify.js - About 1 hr to fix

                        Function suffix has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          p.suffix = function(v, build) {
                            if (this._parts.urn) {
                              return v === undefined ? '' : this;
                            }
                            if (v === undefined || v === true) {
                        Severity: Minor
                        Found in docs/template/static/scripts/URI.js - About 1 hr to fix

                          Function Deferred has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              Deferred: function(e) {
                                var t = [
                                  ["resolve", "done", v.Callbacks("once memory"), "resolved"],
                                  ["reject", "fail", v.Callbacks("once memory"), "rejected"],
                                  ["notify", "progress", v.Callbacks("memory")]
                          Severity: Minor
                          Found in docs/template/static/scripts/jquery.min.js - About 1 hr to fix

                            Function suffix has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              p.suffix = function(v, build) {
                                if (this._parts.urn) {
                                  return v === undefined ? '' : this;
                                }
                                if (v === undefined || v === true) {
                            Severity: Minor
                            Found in docs/scripts/URI.js - About 1 hr to fix

                              Function shutdown has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              master.shutdown = function() {
                                if (shutdownCalled) {
                                  // this function can only be called once
                                  return;
                                }
                              Severity: Minor
                              Found in lib/master.js - About 1 hr to fix

                                Function Deferred has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    Deferred: function(e) {
                                      var t = [
                                        ["resolve", "done", v.Callbacks("once memory"), "resolved"],
                                        ["reject", "fail", v.Callbacks("once memory"), "rejected"],
                                        ["notify", "progress", v.Callbacks("memory")]
                                Severity: Minor
                                Found in docs/scripts/jquery.min.js - About 1 hr to fix

                                  Function createAnalyzerContext has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          function createAnalyzerContext(parserContext, partialContext, options) {
                                              var nodes = [],
                                                  prepareText = function() {
                                                      var nbsp, tab;
                                                      if (options.showWhitespace) {
                                  Severity: Minor
                                  Found in docs/template/static/scripts/sunlight.js - About 1 hr to fix

                                    Function createAnalyzerContext has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function createAnalyzerContext(parserContext, partialContext, options) {
                                                var nodes = [],
                                                    prepareText = function() {
                                                        var nbsp, tab;
                                                        if (options.showWhitespace) {
                                    Severity: Minor
                                    Found in docs/scripts/sunlight.js - About 1 hr to fix

                                      Function parse has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        URI.parse = function(string, parts) {
                                          var pos, t;
                                          if (!parts) {
                                            parts = {};
                                          }
                                      Severity: Minor
                                      Found in docs/template/static/scripts/URI.js - About 1 hr to fix

                                        Function analyze has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                function analyze(analyzerContext, startIndex) {
                                                    var nodes,
                                                        lastIndex,
                                                        container,
                                                        i,
                                        Severity: Minor
                                        Found in docs/template/static/scripts/sunlight.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language