Showing 1,896 of 2,859 total issues

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

unpublish.completion = function (opts, cb) {
  if (opts.conf.argv.remain.length >= 3) return cb()
  npm.commands.whoami([], true, function (er, username) {
    if (er) return cb()

Severity: Minor
Found in deps/npm/lib/unpublish.js - About 1 hr to fix

    Function mapToRegistry has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function mapToRegistry(name, config, cb) {
      log.silly("mapToRegistry", "name", name)
      var registry
    
      // the name itself takes precedence
    Severity: Minor
    Found in deps/npm/lib/utils/map-to-registry.js - About 1 hr to fix

      Function stars has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function stars (args, cb) {
        npm.commands.whoami([], true, function (er, username) {
          var name = args.length === 1 ? args[0] : username
      
          if (er) {
      Severity: Minor
      Found in deps/npm/lib/stars.js - About 1 hr to fix

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

        def main(argv=None):
          if argv is None:
            argv = sys.argv
        
          usage = "gyptest.py [-ahlnq] [-f formats] [test ...]"
        Severity: Minor
        Found in tools/gyp/gyptest.py - About 1 hr to fix

          Function ProcessOptions has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          def ProcessOptions(options):
            global VARIANT_FLAGS
            global VARIANTS
          
            # Architecture and mode related stuff.
          Severity: Minor
          Found in deps/v8/tools/run-tests.py - About 1 hr to fix

            Function sh_extractTagsFromNodeList has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function sh_extractTagsFromNodeList(nodeList, result) {
              var length = nodeList.length;
              for (var i = 0; i < length; i++) {
                var node = nodeList.item(i);
                switch (node.nodeType) {
            Severity: Minor
            Found in doc/sh_main.js - About 1 hr to fix

              Function createContext has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              REPLServer.prototype.createContext = function() {
                var context;
                if (this.useGlobal) {
                  context = global;
                } else {
              Severity: Minor
              Found in lib/repl.js - About 1 hr to fix

                Function close has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                Server.prototype.close = function(cb) {
                  function onSlaveClose() {
                    if (--left !== 0) return;
                
                    self._connections = 0;
                Severity: Minor
                Found in lib/net.js - About 1 hr to fix

                  Function watchers has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  Interface.prototype.watchers = function() {
                    var self = this,
                        verbose = arguments[0] || false,
                        callback = arguments[1] || function() {},
                        waiting = this._watchers.length,
                  Severity: Minor
                  Found in lib/_debugger.js - About 1 hr to fix

                    Function compare has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function compare() {
                      // each result is an object with {"foo.js arg=bar":12345,...}
                      // compare each thing, and show which node did the best.
                      // node[0] is shown in green, node[1] shown in red.
                      var maxLen = -Infinity;
                    Severity: Minor
                    Found in benchmark/compare.js - About 1 hr to fix

                      Function SnapshotLogProcessor has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function SnapshotLogProcessor() {
                        LogReader.call(this, {
                            'code-creation': {
                                parsers: [null, parseInt, parseInt, parseInt, null, 'var-args'],
                                processor: this.processCodeCreation },
                      Severity: Minor
                      Found in deps/v8/tools/tickprocessor.js - About 1 hr to fix

                        Function sc_escapeWriteString has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function sc_escapeWriteString(s) {
                            var res = "";
                            var j = 0;
                            for (i = 0; i < s.length; i++) {
                            switch (s.charAt(i)) {
                        Severity: Minor
                        Found in deps/v8/benchmarks/earley-boyer.js - About 1 hr to fix

                          Function _transform has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          Client.prototype._transform = function _transform(data, enc, cb) {
                            cb();
                          
                            this.buffer += data;
                          
                          
                          Severity: Minor
                          Found in deps/debugger-agent/lib/_debugger_agent.js - About 1 hr to fix

                            Function filter has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function filter (data, args, set, seen) {
                              if (!set) set = {}
                              if (!seen) seen = {}
                              if (set.hasOwnProperty(data.path)) return set
                              if (seen.hasOwnProperty(data.path)) return set
                            Severity: Minor
                            Found in deps/npm/lib/rebuild.js - About 1 hr to fix

                              Function update has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function update (args, cb) {
                                npm.commands.outdated(args, true, function (er, outdated) {
                                  if (er) return cb(er)
                              
                                  var wanted = outdated.filter(function (ww) {
                              Severity: Minor
                              Found in deps/npm/lib/update.js - About 1 hr to fix

                                Function setCredentialsByURI has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function setCredentialsByURI (uri, c) {
                                  assert(uri && typeof uri === "string", "registry URL is required")
                                  assert(c && typeof c === "object", "credentials are required")
                                
                                  var nerfed = toNerfDart(uri)
                                Severity: Minor
                                Found in deps/npm/lib/config/set-credentials-by-uri.js - About 1 hr to fix

                                  Function Write has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    def Write(self, qualified_target, base_path, output_filename, spec, configs,
                                              part_of_all):
                                      """The main entry point: writes a .mk file for a single target.
                                  
                                      Arguments:
                                  Severity: Minor
                                  Found in tools/gyp/pylib/gyp/generator/make.py - About 1 hr to fix

                                    Function GenerateOutput has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    def GenerateOutput(target_list, target_dicts, data, params):
                                      options = params['options']
                                      generator_flags = params.get('generator_flags', {})
                                      builddir_name = generator_flags.get('output_dir', 'out')
                                      limit_to_target_all = generator_flags.get('limit_to_target_all', False)
                                    Severity: Minor
                                    Found in tools/gyp/pylib/gyp/generator/android.py - About 1 hr to fix

                                      Function Execute has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      def Execute(arch, mode, args, options, suites, workspace):
                                        print(">>> Running tests for %s.%s" % (arch, mode))
                                      
                                        shell_dir = options.shell_dir
                                        if not shell_dir:
                                      Severity: Minor
                                      Found in deps/v8/tools/run-tests.py - About 1 hr to fix

                                        Function Execute has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        def Execute(arch, mode, args, options, suites, workspace):
                                          print(">>> Running tests for %s.%s" % (arch, mode))
                                        
                                          dist = Distribution(options)
                                        
                                        
                                        Severity: Minor
                                        Found in deps/v8/tools/run-deopt-fuzzer.py - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language