Showing 1,896 of 2,859 total issues

File progress.py has 252 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
Severity: Minor
Found in deps/v8/tools/testrunner/local/progress.py - About 2 hrs to fix

    Function write has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    CryptoStream.prototype._write = function write(data, encoding, cb) {
      assert(util.isNull(this._pending));
    
      // Black-hole data
      if (!this.pair.ssl) return cb(null);
    Severity: Major
    Found in lib/_tls_legacy.js - About 2 hrs to fix

      Function client has 51 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function client() {
        var chunk;
        switch (type) {
          case 'buf':
            chunk = new Buffer(len);
      Severity: Major
      Found in benchmark/net/tcp-raw-c2s.js - About 2 hrs to fix

        Function bnModPow has 51 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function bnModPow(e,m) {
          var e_array = e.array;
          var i = e.bitLength(), k, r = nbv(1), z;
          if(i <= 0) return r;
          else if(i < 18) k = 1;
        Severity: Major
        Found in deps/v8/benchmarks/crypto.js - About 2 hrs to fix

          Function publish_ has 51 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function publish_ (arg, data, isRetry, cachedir, cb) {
            if (!data) return cb(new Error("no package.json file found"))
          
            var mappedConfig = getPublishConfig(
              data.publishConfig,
          Severity: Major
          Found in deps/npm/lib/publish.js - About 2 hrs to fix

            Function runCmd_ has 51 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function runCmd_ (cmd, pkg, env, wd, stage, unsafe, uid, gid, cb_) {
            
              function cb (er) {
                cb_.apply(null, arguments)
                log.resume()
            Severity: Major
            Found in deps/npm/lib/utils/lifecycle.js - About 2 hrs to fix

              File config.js has 251 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              
              module.exports = config
              
              config.usage = "npm config set <key> <value>"
                           + "\nnpm config get [<key>]"
              Severity: Minor
              Found in deps/npm/lib/config.js - About 2 hrs to fix

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

                function main(conf) {
                  dur = +conf.dur;
                  type = conf.type;
                  size = +conf.size;
                
                
                Severity: Minor
                Found in benchmark/tls/throughput.js - About 2 hrs to fix

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

                  function main(conf) {
                    var dur = +conf.dur;
                    var len = +conf.bytes;
                  
                    var encoding;
                  Severity: Minor
                  Found in benchmark/http/client-request-body.js - About 2 hrs to fix

                    Function andBuildResolvedTree has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          function andBuildResolvedTree (er, current) {
                            if (er) return cb(er)
                    
                            // each target will be a data object corresponding
                            // to a package, folder, or whatever that is in the cache now.
                    Severity: Minor
                    Found in deps/npm/lib/install.js - About 2 hrs to fix

                      Function getCredentialsByURI has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function getCredentialsByURI (uri) {
                        assert(uri && typeof uri === "string", "registry URL is required")
                        var nerfed = toNerfDart(uri)
                        var defnerf = toNerfDart(this.get("registry"))
                      
                      
                      Severity: Minor
                      Found in deps/npm/lib/config/get-credentials-by-uri.js - About 2 hrs to fix

                        Consider simplifying this complex logical expression.
                        Open

                              if ext in ('cc', 'cpp', 'cxx'):
                                command = 'cxx'
                                self.uses_cpp = True
                              elif ext == 'c' or (ext == 'S' and self.flavor != 'win'):
                                command = 'cc'
                        Severity: Critical
                        Found in tools/gyp/pylib/gyp/generator/ninja.py - About 2 hrs to fix

                          Function resolve has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          win32.resolve = function() {
                            var resolvedDevice = '',
                                resolvedTail = '',
                                resolvedAbsolute = false;
                          
                          
                          Severity: Minor
                          Found in lib/path.js - About 1 hr to fix

                            Function onconnection has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              serverHandle.onconnection = function(err, clientHandle) {
                                if (err)
                                  fail(err, 'connect');
                            
                                var chunk;
                            Severity: Minor
                            Found in benchmark/net/tcp-raw-s2c.js - About 1 hr to fix

                              Function printStatistics has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              TickProcessor.prototype.printStatistics = function() {
                                print('Statistical profiling result from ' + this.lastLogFileName_ +
                                      ', (' + this.ticks_.total +
                                      ' ticks, ' + this.ticks_.unaccounted + ' unaccounted, ' +
                                      this.ticks_.excluded + ' excluded).');
                              Severity: Minor
                              Found in deps/v8/tools/tickprocessor.js - About 1 hr to fix

                                Function readString has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function readString() {
                                    res = "";
                                    while (true) {
                                        var c = port.readChar();
                                        switch (c) {
                                Severity: Minor
                                Found in deps/v8/benchmarks/earley-boyer.js - About 1 hr to fix

                                  Function mutate_ has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    function mutate_ (er, u) {
                                      if (!er && user && (!u || u.error)) er = new Error(
                                        "Couldn't get user data for " + user + ": " + JSON.stringify(u))
                                  
                                      if (er) {
                                  Severity: Minor
                                  Found in deps/npm/lib/owner.js - About 1 hr to fix

                                    Function updateIndex has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function updateIndex (staleness, cb) {
                                      assert(typeof cb === 'function', 'must pass callback to updateIndex')
                                    
                                      mapToRegistry('-/all', npm.config, function (er, uri, auth) {
                                        if (er) return cb(er)
                                    Severity: Minor
                                    Found in deps/npm/lib/cache/update-index.js - About 1 hr to fix

                                      Function splay_ has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      SplayTree.prototype.splay_ = function(key) {
                                        if (this.isEmpty()) {
                                          return;
                                        }
                                        // Create a dummy node.  The use of the dummy node is a bit
                                      Severity: Minor
                                      Found in deps/v8/benchmarks/splay.js - About 1 hr to fix

                                        Function splay_ has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        SplayTree.prototype.splay_ = function(key) {
                                          if (this.isEmpty()) {
                                            return;
                                          }
                                          // Create a dummy node.  The use of the dummy node is a bit
                                        Severity: Minor
                                        Found in deps/v8/benchmarks/spinning-balls/splay-tree.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language