Showing 517 of 2,859 total issues

Function connectionListener has 157 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function connectionListener(socket) {
  var self = this;
  var outgoing = [];
  var incoming = [];

Severity: Major
Found in lib/_http_server.js - About 6 hrs to fix

    Function runBlock9 has 153 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function runBlock9() {
        for (var i = 0; i < 5; i++) {
          s94[i].split(re32);
          s95[i].split(re32);
          'svz_zlfcnpr_hfre-ivrj-pbzzragf,svz_zlfcnpr_havgrq-fgngrf'.split(re20);
    Severity: Major
    Found in deps/v8/benchmarks/regexp.js - About 6 hrs to fix

      Function runBlock10 has 148 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function runBlock10() {
          for (var i = 0; i < 3; i++) {
            '%3Szxg=ra-HF'.replace(re39, '');
            '-8'.replace(re40, '');
            '-8'.replace(re10, '');
      Severity: Major
      Found in deps/v8/benchmarks/regexp.js - About 5 hrs to fix

        Function emitKeys has 144 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function emitKeys(stream, s) {
          if (util.isBuffer(s)) {
            if (s[0] > 127 && util.isUndefined(s[1])) {
              s[0] -= 128;
              s = '\x1b' + s.toString(stream.encoding || 'utf-8');
        Severity: Major
        Found in lib/readline.js - About 5 hrs to fix

          Function setupChannel has 142 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function setupChannel(target, channel) {
            target._channel = channel;
            target._handleQueue = null;
          
            var decoder = new StringDecoder('utf8');
          Severity: Major
          Found in lib/child_process.js - About 5 hrs to fix

            Function execFile has 139 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            exports.execFile = function(file /* args, options, callback */) {
              var args = [], callback;
              var options = {
                encoding: 'utf8',
                timeout: 0,
            Severity: Major
            Found in lib/child_process.js - About 5 hrs to fix

              Function assembleOutput has 132 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                this.assembleOutput = function(output) {
                  output("set yrange [0:" + (num_timer_event + 1) + "]");
                  output("set xlabel \"execution time in ms\"");
                  output("set xrange [" + range_start + ":" + range_end + "]");
                  output("set style fill pattern 2 bo 1");
              Severity: Major
              Found in deps/v8/tools/profviz/composer.js - About 5 hrs to fix

                Function gunzTarPerm has 131 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function gunzTarPerm (tarball, target, dMode, fMode, uid, gid, cb_) {
                  if (!dMode) dMode = npm.modes.exec
                  if (!fMode) fMode = npm.modes.file
                  log.silly("gunzTarPerm", "modes", [dMode.toString(8), fMode.toString(8)])
                
                
                Severity: Major
                Found in deps/npm/lib/utils/tar.js - About 5 hrs to fix

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

                  function workerInit() {
                    var handles = {};
                  
                    // Called from src/node.js
                    cluster._setupWorker = function() {
                  Severity: Major
                  Found in lib/cluster.js - About 4 hrs to fix

                    Function connect has 112 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    exports.connect = function(/* [port, host], options, cb */) {
                      var args = normalizeConnectArgs(arguments);
                      var options = args[0];
                      var cb = args[1];
                    
                    
                    Severity: Major
                    Found in lib/_tls_wrap.js - About 4 hrs to fix

                      Function formatValue has 110 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function formatValue(ctx, value, recurseTimes) {
                        // Provide a hook for user-specified inspect functions.
                        // Check that value is an object with an inspect function on it
                        if (ctx.customInspect &&
                            value &&
                      Severity: Major
                      Found in lib/util.js - About 4 hrs to fix

                        Function get has 110 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        Object.defineProperty(exports, "defaults", {get: function () {
                          if (defaults) return defaults
                        
                          if (process.env.PREFIX) {
                            globalPrefix = process.env.PREFIX
                        Severity: Major
                        Found in deps/npm/lib/config/defaults.js - About 4 hrs to fix

                          Function install has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function install (args, cb_) {
                            var hasArguments = !!args.length
                          
                            function cb (er, installed) {
                              if (er) return cb_(er)
                          Severity: Major
                          Found in deps/npm/lib/install.js - About 4 hrs to fix

                            Function collectData has 103 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              this.collectData = function(input, distortion_per_entry) {
                            
                                var last_timestamp = 0;
                            
                                // Parse functions.
                            Severity: Major
                            Found in deps/v8/tools/profviz/composer.js - About 4 hrs to fix

                              Function ClientRequest has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function ClientRequest(options, cb) {
                                var self = this;
                                OutgoingMessage.call(self);
                              
                                if (util.isString(options)) {
                              Severity: Major
                              Found in lib/_http_client.js - About 4 hrs to fix

                                Function runBlock3 has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  function runBlock3() {
                                    for (var i = 0; i < 27; i++) {
                                      s67[i].replace(/[A-Za-z]/g, '');
                                    }
                                    for (var i = 0; i < 23; i++) {
                                Severity: Major
                                Found in deps/v8/benchmarks/regexp.js - About 4 hrs to fix

                                  Function dedupe_ has 101 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function dedupe_ (dir, filter, unavoidable, dryrun, silent, cb) {
                                    readInstalled(path.resolve(dir), {}, null, function (er, data, counter) {
                                      if (er) {
                                        return cb(er)
                                      }
                                  Severity: Major
                                  Found in deps/npm/lib/dedupe.js - About 4 hrs to fix

                                    Function list has 100 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function list (cb) {
                                      var msg = ""
                                        , long = npm.config.get("long")
                                    
                                      var cli = npm.config.sources.cli.data
                                    Severity: Major
                                    Found in deps/npm/lib/config.js - About 4 hrs to fix

                                      Function targetResolver has 97 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function targetResolver (where, context, deps, devDeps) {
                                        var alreadyInstalledManually = []
                                          , resolveLeft = 0
                                          , nm = path.resolve(where, "node_modules")
                                          , parent = context.parent
                                      Severity: Major
                                      Found in deps/npm/lib/install.js - About 3 hrs to fix

                                        Function pipe has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        Readable.prototype.pipe = function(dest, pipeOpts) {
                                          var src = this;
                                          var state = this._readableState;
                                        
                                          switch (state.pipesCount) {
                                        Severity: Major
                                        Found in lib/_stream_readable.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language