Showing 1,896 of 2,859 total issues

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

BenchmarkSuite.RunSuites = function(runner) {
  var continuation = null;
  var suites = BenchmarkSuite.suites;
  var length = suites.length;
  BenchmarkSuite.scores = [];
Severity: Minor
Found in deps/v8/benchmarks/base.js - About 1 hr to fix

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

    function projectionTest(n) {
      planner = new Planner();
      var scale = new Variable("scale", 10);
      var offset = new Variable("offset", 1000);
      var src = null, dst = null;
    Severity: Minor
    Found in deps/v8/benchmarks/deltablue.js - About 1 hr to fix

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

      function getDoc (project, cb) {
        project = project || "."
        var package = path.resolve(npm.localPrefix, "package.json")
      
        if (project === "." || project === "./") {
      Severity: Minor
      Found in deps/npm/lib/docs.js - About 1 hr to fix

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

          function asmClick(element) {
            if (element == selectedAsm) return;
            if (selectedAsm != null) {
              selectedAsm.classList.remove('highlight-yellow');
            }
        Severity: Minor
        Found in deps/v8/tools/sodium/sodium.js - About 1 hr to fix

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

          function gotProject (project, version, publishConfig, cb_) {
            if (typeof cb_ !== 'function') {
              cb_ = publishConfig
              publishConfig = null
            }
          Severity: Minor
          Found in deps/npm/lib/unpublish.js - About 1 hr to fix

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

            function localLink (target, where, context, cb) {
              log.verbose("localLink", target._id)
              var jsonPath = path.resolve(npm.globalDir, target.name , 'package.json')
              var parent = context.parent
            
            
            Severity: Minor
            Found in deps/npm/lib/install.js - About 1 hr to fix

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

              function readPassword (c, u, cb) {
                var v = userValidate.pw
              
                var prompt
                if (c.p && !c.changed) {
              Severity: Minor
              Found in deps/npm/lib/adduser.js - About 1 hr to fix

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

                function tryClone (from, combinedURL, silent, cb) {
                  log.silly('tryClone', 'cloning', from, 'via', combinedURL)
                
                  var normalized = normalizeGitUrl(combinedURL)
                  var cloneURL = normalized.url
                Severity: Minor
                Found in deps/npm/lib/cache/add-remote-git.js - About 1 hr to fix

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

                    def WriteSpec(self, spec, config_name, generator_flags):
                      """The main entry point for NinjaWriter: write the build rules for a spec.
                  
                      Returns a Target object, which represents the output paths for this spec.
                      Returns None if there are no outputs (e.g. a settings-only 'none' type
                  Severity: Minor
                  Found in tools/gyp/pylib/gyp/generator/ninja.py - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                        } else if (parts = functionKeyCodeRe.exec(s)) {
                          // ansi escape sequence
                    
                          // reassemble the key code leaving out leading \x1b's,
                          // the modifier key bitflag and any meaningless "1;" sequence
                    Severity: Major
                    Found in lib/readline.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                        if (isWindows) {
                          return process.env.TEMP ||
                                 process.env.TMP ||
                                 (process.env.SystemRoot || process.env.windir) + '\\temp';
                        } else {
                      Severity: Major
                      Found in lib/os.js - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                          if (!hostlessProtocol[proto] &&
                              (slashes || (proto && !slashedProtocol[proto]))) {
                        
                            // there's a hostname.
                            // the first instance of /, ?, ;, or # ends the host.
                        Severity: Major
                        Found in lib/url.js - About 1 hr to fix

                          Function RSASetPrivateEx has 8 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          function RSASetPrivateEx(N,E,D,P,Q,DP,DQ,C) {
                          Severity: Major
                          Found in deps/v8/benchmarks/crypto.js - About 1 hr to fix

                            Function shouldUpdate has 8 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            function shouldUpdate (args, dir, dep, has, req, depth, cb, type) {
                            Severity: Major
                            Found in deps/npm/lib/outdated.js - About 1 hr to fix

                              Function Code has 8 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                function Code(name, kind, sourceBegin, sourceEnd, asmBegin, asmEnd,
                                              firstSourcePosition, startAddress) {
                              Severity: Major
                              Found in deps/v8/tools/sodium/sodium.js - About 1 hr to fix

                                Function unpack has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                function unpack (pkg, ver, unpackTarget, dMode, fMode, uid, gid, cb) {
                                Severity: Major
                                Found in deps/npm/lib/cache.js - About 1 hr to fix

                                  Function runCmd has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  function runCmd (note, cmd, pkg, env, stage, wd, unsafe, cb) {
                                  Severity: Major
                                  Found in deps/npm/lib/utils/lifecycle.js - About 1 hr to fix

                                    Function __init__ has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                      def __init__(self, parser, serializer, name, default, help_string,
                                    Severity: Major
                                    Found in tools/closure_linter/gflags.py - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                          if type == Type.START_BLOCK:
                                            self._block_depth += 1
                                      
                                            # Subclasses need to handle block start very differently because
                                            # whether a block is a CODE or OBJECT_LITERAL block varies significantly
                                      Severity: Major
                                      Found in tools/closure_linter/closure_linter/statetracker.py - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                              if (self._last_code.type in (TokenType.END_PAREN,
                                                                           TokenType.END_PARAMETERS) or
                                                  self._last_code.IsKeyword('else') or
                                                  self._last_code.IsKeyword('do') or
                                                  self._last_code.IsKeyword('try') or
                                        Severity: Major
                                        Found in tools/closure_linter/closure_linter/ecmametadatapass.py - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language