Showing 1,896 of 2,859 total issues

Function completionGroupsLoaded has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function completionGroupsLoaded(err) {
    if (err) throw err;

    // Filter, sort (within each group), uniq and merge the completion groups.
    if (completionGroups.length && filter) {
Severity: Minor
Found in lib/repl.js - About 1 hr to fix

    Function Unwrapper has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function Unwrapper() {
      var self = this;
    
      Stream.call(this);
      this.writable = true;
    Severity: Minor
    Found in tools/license2rtf.js - About 1 hr to fix

      Function verifyFiles has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function verifyFiles(files, callback) {
        var dir = path.resolve(verifyDir, 'doc-' + id++);
      
        files = Object.keys(files).map(function(name) {
          return {
      Severity: Minor
      Found in tools/doc/addon-verify.js - About 1 hr to fix

        Function removeListener has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function removeListener(type, listener) {
          var list, position, length, i;
        
          if (!util.isFunction(listener))
            throw TypeError('listener must be a function');
        Severity: Minor
        Found in lib/events.js - About 1 hr to fix

          Function _listen2 has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          Server.prototype._listen2 = function(address, port, addressType, backlog, fd) {
            debug('listen2', address, port, addressType, backlog);
            var self = this;
          
            // If there is not yet a handle, we need to create one and bind.
          Severity: Minor
          Found in lib/net.js - About 1 hr to fix

            Function unrefTimeout has 33 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function unrefTimeout() {
              var now = Timer.now();
            
              debug('unrefTimer fired');
            
            
            Severity: Minor
            Found in lib/timers.js - About 1 hr to fix

              Function backtraceCommandToJSONRequest_ has 33 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              DebugRequest.prototype.backtraceCommandToJSONRequest_ = function(args) {
                // Build a backtrace request from the text command.
                var request = this.createRequest('backtrace');
              
                // Default is to show top 10 frames.
              Severity: Minor
              Found in deps/v8/src/d8.js - About 1 hr to fix

                Function main has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function main(conf) {
                  http = require('http');
                  var chunk;
                  var len = conf.kb * 1024;
                  switch (conf.type) {
                Severity: Minor
                Found in benchmark/http/end-vs-write-end.js - About 1 hr to fix

                  Function set_bnd has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function set_bnd(b, x)
                      {
                          if (b===1) {
                              for (var i = 1; i <= width; i++) {
                                  x[i] =  x[i + rowSize];
                  Severity: Minor
                  Found in deps/v8/benchmarks/navier-stokes.js - About 1 hr to fix

                    Function checkoutTreeish has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function checkoutTreeish (from, resolvedURL, resolvedTreeish, tmpdir, cb) {
                      var args = ['checkout', resolvedTreeish]
                      git.whichAndExec(
                        args,
                        { cwd: tmpdir, env: gitEnv() },
                    Severity: Minor
                    Found in deps/npm/lib/cache/add-remote-git.js - About 1 hr to fix

                      Function readdir has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function readdir(name) {
                          resolveLeft++
                          fs.readdir(name, function (er, inst) {
                            if (er) return resolveLeft--
                      
                      
                      Severity: Minor
                      Found in deps/npm/lib/install.js - About 1 hr to fix

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

                        function get (uri, params, cb) {
                          assert(typeof uri === "string", "must pass registry URI to get")
                          assert(params && typeof params === "object", "must pass params to get")
                          assert(typeof cb === "function", "must pass callback to get")
                        
                        
                        Severity: Minor
                        Found in deps/npm/lib/cache/caching-client.js - About 1 hr to fix

                          Function parseSignature has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function parseSignature(text, sig) {
                            var params = text.match(paramExpr);
                            if (!params) return;
                            params = params[1];
                            // the [ is irrelevant. ] indicates optionalness.
                          Severity: Minor
                          Found in tools/doc/json.js - About 1 hr to fix

                            Function processIncludes has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function processIncludes(input, cb) {
                              var includes = input.match(includeExpr);
                              if (includes === null) return cb(null, input);
                              var errState = null;
                              console.error(includes);
                            Severity: Minor
                            Found in tools/doc/generate.js - About 1 hr to fix

                              Function exithandler has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function exithandler(code, signal) {
                                  if (exited) return;
                                  exited = true;
                              
                                  if (timeoutId) {
                              Severity: Minor
                              Found in lib/child_process.js - About 1 hr to fix

                                Function objEquiv has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function objEquiv(a, b) {
                                  if (util.isNullOrUndefined(a) || util.isNullOrUndefined(b))
                                    return false;
                                  // an identical 'prototype' property.
                                  if (a.prototype !== b.prototype) return false;
                                Severity: Minor
                                Found in lib/assert.js - About 1 hr to fix

                                  Function onread has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function onread(nread, buffer) {
                                    var handle = this;
                                    var self = handle.owner;
                                    assert(handle === self._handle, 'handle != self._handle');
                                  
                                  
                                  Severity: Minor
                                  Found in lib/net.js - About 1 hr to fix

                                    Function toString has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    Buffer.prototype.toString = function(encoding, start, end) {
                                      var loweredCase = false;
                                    
                                      start = start >>> 0;
                                      end = util.isUndefined(end) || end === Infinity ? this.length : end >>> 0;
                                    Severity: Minor
                                    Found in lib/buffer.js - About 1 hr to fix

                                      Function ReadableState has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function ReadableState(options, stream) {
                                        options = options || {};
                                      
                                        // object stream flag. Used to make read(n) ignore n and to
                                        // make all the buffer merging and length checks go away
                                      Severity: Minor
                                      Found in lib/_stream_readable.js - About 1 hr to fix

                                        Function addListener has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        EventEmitter.prototype.addListener = function addListener(type, listener) {
                                          var m;
                                        
                                          if (!util.isFunction(listener))
                                            throw TypeError('listener must be a function');
                                        Severity: Minor
                                        Found in lib/events.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language