Showing 517 of 2,859 total issues

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

    _parseMap: function(map, lineNumber, columnNumber)
    {
        var sourceIndex = 0;
        var sourceLineNumber = 0;
        var sourceColumnNumber = 0;
Severity: Major
Found in deps/v8/tools/SourceMap.js - About 2 hrs to fix

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

    owner.completion = function (opts, cb) {
      var argv = opts.conf.argv.remain
      if (argv.length > 4) return cb()
      if (argv.length <= 2) {
        var subs = ["add", "rm"]
    Severity: Major
    Found in deps/npm/lib/owner.js - About 2 hrs to fix

      Function _compile has 60 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      Module.prototype._compile = function(content, filename) {
        var self = this;
        // remove shebang
        content = content.replace(/^\#\!.*/, '');
      
      
      Severity: Major
      Found in lib/module.js - About 2 hrs to fix

        Function spawn has 60 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        ChildProcess.prototype.spawn = function(options) {
          var self = this,
              ipc,
              ipcFd,
              // If no `stdio` option was given - use default
        Severity: Major
        Found in lib/child_process.js - About 2 hrs to fix

          Function readFileSync has 60 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          fs.readFileSync = function(path, options) {
            if (!options) {
              options = { encoding: null, flag: 'r' };
            } else if (util.isString(options)) {
              options = { encoding: options, flag: 'r' };
          Severity: Major
          Found in lib/fs.js - About 2 hrs to fix

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

            function completion (args, cb) {
              if (process.platform === "win32") {
                var e = new Error("npm completion not supported on windows")
                e.code = "ENOTSUP"
                e.errno = require("constants").ENOTSUP
            Severity: Major
            Found in deps/npm/lib/completion.js - About 2 hrs to fix

              Function mutate has 60 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function mutate (pkg, user, mutation, cb) {
                if (user) {
                  var byUser = "-/user/org.couchdb.user:" + user
                  mapToRegistry(byUser, npm.config, function (er, uri, auth) {
                    if (er) return cb(er)
              Severity: Major
              Found in deps/npm/lib/owner.js - About 2 hrs to fix

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

                Readable.prototype.read = function(n) {
                  debug('read', n);
                  var state = this._readableState;
                  var nOrig = n;
                
                
                Severity: Major
                Found in lib/_stream_readable.js - About 2 hrs to fix

                  Function server has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function server() {
                    var serverHandle = new TCP();
                    var err = serverHandle.bind('127.0.0.1', PORT);
                    if (err)
                      fail(err, 'bind');
                  Severity: Major
                  Found in benchmark/net/tcp-raw-s2c.js - About 2 hrs to fix

                    Function runBlock7 has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      function runBlock7() {
                        for (var i = 0; i < 9; i++) {
                          '0'.replace(re40, '');
                          '0'.replace(re10, '');
                          '0'.replace(re51, '');
                    Severity: Major
                    Found in deps/v8/benchmarks/regexp.js - About 2 hrs to fix

                      Function addLocalDirectory has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function addLocalDirectory (p, pkgData, shasum, cb) {
                        assert(pkgData, "must pass package data")
                        assert(typeof cb === "function", "must have callback")
                      
                        // if it's a folder, then read the package.json,
                      Severity: Major
                      Found in deps/npm/lib/cache/add-local.js - About 2 hrs to fix

                        Function load has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function load (npm, cli, cb) {
                          which(process.argv[0], function (er, node) {
                            if (!er && node.toUpperCase() !== process.execPath.toUpperCase()) {
                              log.verbose("node symlink", node)
                              process.execPath = node
                        Severity: Major
                        Found in deps/npm/lib/npm.js - About 2 hrs to fix

                          Function WriteTarget has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          def WriteTarget(namer, qualified_target, target_dicts, build_dir, config_to_use,
                                          options, generator_flags, all_qualified_targets, output):
                          
                            # The make generator does this always.
                            # TODO: It would be nice to be able to tell CMake all dependencies.
                          Severity: Major
                          Found in tools/gyp/pylib/gyp/generator/cmake.py - About 2 hrs to fix

                            Function bind has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            Socket.prototype.bind = function(port /*, address, callback*/) {
                              var self = this;
                            
                              self._healthCheck();
                            
                            
                            Severity: Major
                            Found in lib/dgram.js - About 2 hrs to fix

                              Function helpCommand_ has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              DebugRequest.prototype.helpCommand_ = function(args) {
                                // Help os quite simple.
                                if (args && args.length > 0) {
                                  print('warning: arguments to \'help\' are ignored');
                                }
                              Severity: Major
                              Found in deps/v8/src/d8.js - About 2 hrs to fix

                                Function runBlock2 has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  function runBlock2() {
                                    for (var i = 0; i < 40; i++) {
                                      s57a[i].replace(re14, '');
                                      s57a[i].replace(re15, '');
                                    }
                                Severity: Major
                                Found in deps/v8/benchmarks/regexp.js - About 2 hrs to fix

                                  Function runBlock1 has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    function runBlock1() {
                                      for (var i = 0; i < 81; i++) {
                                        re8.exec(s26[i]);
                                      }
                                      for (var i = 0; i < 78; i++) {
                                  Severity: Major
                                  Found in deps/v8/benchmarks/regexp.js - About 2 hrs to fix

                                    Function getLite has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function getLite (data, noname) {
                                      var lite = {}
                                        , maxDepth = npm.config.get("depth")
                                    
                                      if (!noname && data.name) lite.name = data.name
                                    Severity: Major
                                    Found in deps/npm/lib/ls.js - About 2 hrs to fix

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

                                      Conf.prototype.save = function (where, cb) {
                                        var target = this.sources[where]
                                        if (!target || !(target.path || target.source) || !target.data) {
                                          if (where !== "builtin")
                                            var er = new Error("bad save target: " + where)
                                      Severity: Major
                                      Found in deps/npm/lib/config/core.js - About 2 hrs to fix

                                        Function Buffer has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function Buffer(subject, encoding) {
                                          if (!util.isBuffer(this))
                                            return new Buffer(subject, encoding);
                                        
                                          if (util.isNumber(subject)) {
                                        Severity: Major
                                        Found in lib/buffer.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language