Showing 517 of 2,859 total issues

Function run has 69 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function run(args) {
  var file = args["file"];
  var resx = args["resx"];
  var resy = args["resy"];
  var distortion = args["distortion"];
Severity: Major
Found in deps/v8/tools/profviz/worker.js - About 2 hrs to fix

    Function read has 69 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    sc_Reader.prototype.read = function() {
        function readList(listBeginType) {
        function matchesPeer(open, close) {
            return open === 1/*OPEN_PAR*/ && close === 2/*CLOSE_PAR*/
                || open === 3/*OPEN_BRACE*/ && close === 4/*CLOSE_BRACE*/
    Severity: Major
    Found in deps/v8/benchmarks/earley-boyer.js - About 2 hrs to fix

      Function save has 69 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function save (where, installed, tree, pretty, hasArguments, cb) {
        if (!hasArguments ||
            !npm.config.get("save") &&
            !npm.config.get("save-dev") &&
            !npm.config.get("save-optional") ||
      Severity: Major
      Found in deps/npm/lib/install.js - About 2 hrs to fix

        Function _init has 68 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        TLSSocket.prototype._init = function(socket) {
          assert(this._handle);
        
          // lib/net.js expect this value to be non-zero if write hasn't been flushed
          // immediately
        Severity: Major
        Found in lib/_tls_wrap.js - About 2 hrs to fix

          Function readInstalled has 68 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function readInstalled (dir, counter, parent, cb) {
            var pkg, children, realpath
          
            fs.realpath(dir, function (er, rp) {
              realpath = rp
          Severity: Major
          Found in deps/npm/lib/dedupe.js - About 2 hrs to fix

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

            function write (target, targetFolder, context, cb_) {
              var up = npm.config.get("unsafe-perm")
                , user = up ? null : npm.config.get("user")
                , group = up ? null : npm.config.get("group")
                , family = context.family
            Severity: Major
            Found in deps/npm/lib/install.js - About 2 hrs to fix

              Function addNameVersion has 68 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function addNameVersion (name, v, data, cb) {
                var ver = semver.valid(v, true)
                if (!ver) return cb(new Error("Invalid version: "+v))
              
                var response
              Severity: Major
              Found in deps/npm/lib/cache/add-named.js - About 2 hrs to fix

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

                Buffer.prototype.write = function(string, offset, length, encoding) {
                  // Buffer#write(string);
                  if (util.isUndefined(offset)) {
                    encoding = 'utf8';
                    length = this.length;
                Severity: Major
                Found in lib/buffer.js - About 2 hrs to fix

                  Function read has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  CryptoStream.prototype._read = function read(size) {
                    // XXX: EOF?!
                    if (!this.pair.ssl) return this.push(null);
                  
                    // Wait for session to be resumed
                  Severity: Major
                  Found in lib/_tls_legacy.js - About 2 hrs to fix

                    Function SecurePair has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function SecurePair(context, isServer, requestCert, rejectUnauthorized,
                                        options) {
                      if (!(this instanceof SecurePair)) {
                        return new SecurePair(context,
                                              isServer,
                    Severity: Major
                    Found in lib/_tls_legacy.js - About 2 hrs to fix

                      Function exports has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      var server = module.exports = http.createServer(function (req, res) {
                        if (useDomains) {
                          var dom = domain.create();
                          dom.add(req);
                          dom.add(res);
                      Severity: Major
                      Found in benchmark/http_simple.js - About 2 hrs to fix

                        Function readDependencies has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function readDependencies (context, where, opts, cb) {
                          var wrap = context ? context.wrap : null
                        
                          var jsonPath = path.resolve(where, 'package.json')
                          log.verbose('readDependencies', 'loading dependencies from', jsonPath)
                        Severity: Major
                        Found in deps/npm/lib/install.js - About 2 hrs to fix

                          Function UIWrapper has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function UIWrapper() {
                            var input_elements = ["range_start",
                                                  "range_end",
                                                  "distortion",
                                                  "start",
                          Severity: Major
                          Found in deps/v8/tools/profviz/profviz.js - About 2 hrs to fix

                            Function changeBreakpointCommandToJSONRequest_ has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function(args, command) {
                            
                              var request;
                            
                              // Check for exception breaks first:
                            Severity: Major
                            Found in deps/v8/src/d8.js - About 2 hrs to fix

                              Function send has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              Socket.prototype.send = function(buffer,
                                                               offset,
                                                               length,
                                                               port,
                                                               address,
                              Severity: Major
                              Found in lib/dgram.js - About 2 hrs to fix

                                Function realpathSync has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                fs.realpathSync = function realpathSync(p, cache) {
                                  // make p is absolute
                                  p = pathModule.resolve(p);
                                
                                  if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
                                Severity: Major
                                Found in lib/fs.js - About 2 hrs to fix

                                  Function makeArchy_ has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function makeArchy_ (data, long, dir, depth, parent, d) {
                                    if (typeof data === "string") {
                                      if (depth -1 <= npm.config.get("depth")) {
                                        // just missing
                                        var unmet = "UNMET DEPENDENCY"
                                  Severity: Major
                                  Found in deps/npm/lib/ls.js - About 2 hrs to fix

                                    Function load_ has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function load_(builtin, rc, cli, cb) {
                                      var defaults = configDefs.defaults
                                      var conf = new Conf(rc)
                                    
                                      conf.usingBuiltin = !!builtin
                                    Severity: Major
                                    Found in deps/npm/lib/config/core.js - About 2 hrs to fix

                                      Function client has 61 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-pipe.js - About 2 hrs to fix

                                        Function processLine has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          function processLine(text, begin, end) {
                                            var line = text.substring(begin, end);
                                            if (readingSource) {
                                              if (separatorFilter.exec(line) != null) {
                                                readingSource = false;
                                        Severity: Major
                                        Found in deps/v8/tools/sodium/sodium.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language