Showing 517 of 2,859 total issues

Function processNextTick has 92 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  startup.processNextTick = function() {
    var nextTickQueue = [];
    var microtasksScheduled = false;

    // Used to run V8's micro task queue.
Severity: Major
Found in src/node.js - About 3 hrs to fix

    Function outdated_ has 90 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function outdated_ (args, dir, parentHas, depth, cb) {
      // get the deps from package.json, or {<dir/node_modules/*>:"*"}
      // asyncMap over deps:
      //   shouldHave = cache.add(dep, req).version
      //   if has === shouldHave then
    Severity: Major
    Found in deps/npm/lib/outdated.js - About 3 hrs to fix

      Function ParagraphParser has 89 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function ParagraphParser() {
        var self = this,
            block_is_license_block = false,
            block_has_c_style_comment,
            is_first_line_in_paragraph,
      Severity: Major
      Found in tools/license2rtf.js - About 3 hrs to fix

        Function setBreakpoint has 88 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        Interface.prototype.setBreakpoint = function(script, line,
                                                     condition, silent) {
          if (!this.requireConnection()) return;
        
          var self = this,
        Severity: Major
        Found in lib/_debugger.js - About 3 hrs to fix

          Function gentlyRm has 88 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function gentlyRm (target, gently, base, cb) {
            if (!cb) {
              cb = base
              base = undefined
            }
          Severity: Major
          Found in deps/npm/lib/utils/gently-rm.js - About 3 hrs to fix

            Function checkServerIdentity has 86 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            exports.checkServerIdentity = function checkServerIdentity(host, cert) {
              // Create regexp to much hostnames
              function regexpify(host, wildcards) {
                // Add trailing dot (make hostnames uniform)
                if (!/\.$/.test(host)) host += '.';
            Severity: Major
            Found in lib/tls.js - About 3 hrs to fix

              Function doJSON has 86 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function doJSON(input, filename, cb) {
                var root = {source: filename};
                var stack = [root];
                var depth = 0;
                var current = root;
              Severity: Major
              Found in tools/doc/json.js - About 3 hrs to fix

                Function _validateStdio has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function _validateStdio(stdio, sync) {
                  var ipc,
                      ipcFd;
                
                  // Replace shortcut with an array
                Severity: Major
                Found in lib/child_process.js - About 3 hrs to fix

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

                  Socket.prototype.connect = function(options, cb) {
                    if (this.write !== Socket.prototype.write)
                      this.write = Socket.prototype.write;
                  
                    if (!util.isObject(options)) {
                  Severity: Major
                  Found in lib/net.js - About 3 hrs to fix

                    Function Interface has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function Interface(stdin, stdout, args) {
                      var self = this;
                    
                      this.stdin = stdin;
                      this.stdout = stdout;
                    Severity: Major
                    Found in lib/_debugger.js - About 3 hrs to fix

                      Function searchFiles has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function searchFiles (args, files, cb) {
                        var results = []
                        Object.keys(files).forEach(function (file) {
                          var data = files[file]
                      
                      
                      Severity: Major
                      Found in deps/npm/lib/help-search.js - About 3 hrs to fix

                        Function trySpawn has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        Interface.prototype.trySpawn = function(cb) {
                          var self = this,
                              breakpoints = this.breakpoints || [],
                              port = exports.port,
                              host = 'localhost',
                        Severity: Major
                        Found in lib/_debugger.js - About 3 hrs to fix

                          Function Server has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function Server(/* [options], listener */) {
                            var options, listener;
                            if (util.isObject(arguments[0])) {
                              options = arguments[0];
                              listener = arguments[1];
                          Severity: Major
                          Found in lib/_tls_wrap.js - About 3 hrs to fix

                            Function realpath has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            fs.realpath = function realpath(p, cache, cb) {
                              if (!util.isFunction(cb)) {
                                cb = maybeCallback(cache);
                                cache = null;
                              }
                            Severity: Major
                            Found in lib/fs.js - About 3 hrs to fix

                              Function runBlock6 has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function runBlock6() {
                                  for (var i = 0; i < 11; i++) {
                                    s83[i].replace(/##yv0##/gi, '');
                                    s83[i].replace(re57, '');
                                    s84[i].replace(re58, '');
                              Severity: Major
                              Found in deps/v8/benchmarks/regexp.js - About 3 hrs to fix

                                Function shouldUpdate has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function shouldUpdate (args, dir, dep, has, req, depth, cb, type) {
                                  // look up the most recent version.
                                  // if that's what we already have, or if it's not on the args list,
                                  // then dive into it.  Otherwise, cb() with the data.
                                
                                
                                Severity: Major
                                Found in deps/npm/lib/outdated.js - About 3 hrs to fix

                                  Function startup has 81 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    function startup() {
                                      var EventEmitter = NativeModule.require('events').EventEmitter;
                                  
                                      process.__proto__ = Object.create(EventEmitter.prototype, {
                                        constructor: {
                                  Severity: Major
                                  Found in src/node.js - About 3 hrs to fix

                                    Function renderScene has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function renderScene(){
                                        var scene = new Flog.RayTracer.Scene();
                                    
                                        scene.camera = new Flog.RayTracer.Camera(
                                                            new Flog.RayTracer.Vector(0, 0, -15),
                                    Severity: Major
                                    Found in deps/v8/benchmarks/raytrace.js - About 3 hrs to fix

                                      Function _processChunk has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      Zlib.prototype._processChunk = function(chunk, flushFlag, cb) {
                                        var availInBefore = chunk && chunk.length;
                                        var availOutBefore = this._chunkSize - this._offset;
                                        var inOff = 0;
                                      
                                      
                                      Severity: Major
                                      Found in lib/zlib.js - About 3 hrs to fix

                                        Function finishSection has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function finishSection(section, parent) {
                                          if (!section || !parent) {
                                            throw new Error('Invalid finishSection call\n'+
                                                            JSON.stringify(section) + '\n' +
                                                            JSON.stringify(parent));
                                        Severity: Major
                                        Found in tools/doc/json.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language