Showing 1,896 of 2,859 total issues

Function pump has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.pump = exports.deprecate(function(readStream, writeStream, callback) {
  var callbackCalled = false;

  function call(a, b, c) {
    if (callback && !callbackCalled) {
Severity: Minor
Found in lib/util.js - About 1 hr to fix

    Function renegotiate has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    TLSSocket.prototype.renegotiate = function(options, callback) {
      var requestCert = this._requestCert,
          rejectUnauthorized = this._rejectUnauthorized;
    
      if (typeof options.requestCert !== 'undefined')
    Severity: Minor
    Found in lib/_tls_wrap.js - About 1 hr to fix

      Function GetCompletions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function GetCompletions(global, last, full) {
        var full_tokens = full.split();
        full = full_tokens.pop();
        var parts = full.split('.');
        parts.pop();
      Severity: Minor
      Found in deps/v8/src/d8.js - About 1 hr to fix

        Function formatScope_ has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function formatScope_(scope) {
          var result = '';
          var index = scope.index;
          result += '#' + (index <= 9 ? '0' : '') + index;
          result += ' ';
        Severity: Minor
        Found in deps/v8/src/d8.js - About 1 hr to fix

          Function bnToString has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function bnToString(b) {
            var this_array = this.array;
            if(this.s < 0) return "-"+this.negate().toString(b);
            var k;
            if(b == 16) k = 4;
          Severity: Minor
          Found in deps/v8/benchmarks/crypto.js - About 1 hr to fix

            Function cleanup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function cleanup (data) {
              if (Array.isArray(data)) {
                if (data.length === 1) {
                  data = data[0]
                } else {
            Severity: Minor
            Found in deps/npm/lib/view.js - About 1 hr to fix

              Function completion has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              runScript.completion = function (opts, cb) {
              
                // see if there's already a package specified.
                var argv = opts.conf.argv.remain
              
              
              Severity: Minor
              Found in deps/npm/lib/run-script.js - About 1 hr to fix

                Function viewMan has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function viewMan (man, cb) {
                  var nre = /([0-9]+)$/
                  var num = man.match(nre)[1]
                  var section = path.basename(man, "." + num)
                
                
                Severity: Minor
                Found in deps/npm/lib/help.js - About 1 hr to fix

                  Function linkBins has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function linkBins (pkg, folder, parent, gtop, cb) {
                    if (!pkg.bin || !gtop && path.basename(parent) !== "node_modules") {
                      return cb()
                    }
                    var binRoot = gtop ? npm.globalBin
                  Severity: Minor
                  Found in deps/npm/lib/build.js - About 1 hr to fix

                    Function fetchAndShaCheck has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function fetchAndShaCheck (u, tmp, shasum, auth, cb) {
                      npm.registry.fetch(u, { auth : auth }, function (er, response) {
                        if (er) {
                          log.error("fetch failed", u)
                          return cb(er, response)
                    Severity: Minor
                    Found in deps/npm/lib/cache/add-remote-tarball.js - About 1 hr to fix

                      Function mirrorRemote has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function mirrorRemote (from, cloneURL, treeish, cachedRemote, silent, cb) {
                        mkdir(cachedRemote, function (er) {
                          if (er) return cb(er)
                      
                          var args = [
                      Severity: Minor
                      Found in deps/npm/lib/cache/add-remote-git.js - About 1 hr to fix

                        Function _GenerateMSVSProject has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        def _GenerateMSVSProject(project, options, version, generator_flags):
                          """Generates a .vcproj file.  It may create .rules and .user files too.
                        
                          Arguments:
                            project: The project object we will generate the file for.
                        Severity: Minor
                        Found in tools/gyp/pylib/gyp/generator/msvs.py - About 1 hr to fix

                          Function BuildOptions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          def BuildOptions():
                            result = optparse.OptionParser()
                            result.add_option("--arch",
                                              help=("The architecture to run tests for, "
                                                    "'auto' or 'native' for auto-detect"),
                          Severity: Minor
                          Found in deps/v8/tools/run-deopt-fuzzer.py - About 1 hr to fix

                            Function normalizeExecArgs has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function normalizeExecArgs(command /*, options, callback */) {
                              var file, args, options, callback;
                            
                              if (util.isFunction(arguments[1])) {
                                options = undefined;
                            Severity: Minor
                            Found in lib/child_process.js - About 1 hr to fix

                              Function _resolveLookupPaths has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              Module._resolveLookupPaths = function(request, parent) {
                                if (NativeModule.exists(request)) {
                                  return [request, []];
                                }
                              
                              
                              Severity: Minor
                              Found in lib/module.js - About 1 hr to fix

                                Function SocketListReceive has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function SocketListReceive(slave, key) {
                                  EventEmitter.call(this);
                                
                                  var self = this;
                                
                                
                                Severity: Minor
                                Found in lib/child_process.js - About 1 hr to fix

                                  Function rr has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    function rr(message, cb) {
                                      if (message.errno)
                                        return cb(message.errno, null);
                                  
                                      var key = message.key;
                                  Severity: Minor
                                  Found in lib/cluster.js - About 1 hr to fix

                                    Function gcToJSONRequest_ has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    DebugRequest.prototype.gcToJSONRequest_ = function(args) {
                                      var request;
                                      if (!args) {
                                        args = 'all';
                                      }
                                    Severity: Minor
                                    Found in deps/v8/src/d8.js - About 1 hr to fix

                                      Function intersect has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          intersect: function(ray){
                                              var info = new Flog.RayTracer.IntersectionInfo();
                                      
                                              var Vd = this.position.dot(ray.direction);
                                              if(Vd == 0) return info; // no intersection
                                      Severity: Minor
                                      Found in deps/v8/benchmarks/raytrace.js - About 1 hr to fix

                                        Function sc_toWriteCircleString has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        sc_Vector.prototype.sc_toWriteCircleString = function(symb) {
                                            if (this[symb + "use"]) { // use-flag is set. Just use it.
                                            var nb = this[symb + "nb"];
                                            if (this[symb]-- === 0) { // if we are the last use. remove all fields.
                                                delete this[symb];
                                        Severity: Minor
                                        Found in deps/v8/benchmarks/earley-boyer.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language