Showing 2,859 of 2,859 total issues

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

    intersect: function(ray){
        var info = new Flog.RayTracer.IntersectionInfo();

        var Vd = this.position.dot(ray.direction);
        if(Vd == 0) return info; // no intersection
Severity: Minor
Found in deps/v8/benchmarks/raytrace.js - About 1 hr to fix

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

    sc_Vector.prototype.sc_toWriteCircleString = function(symb) {
        if (this[symb + "use"]) { // use-flag is set. Just use it.
        var nb = this[symb + "nb"];
        if (this[symb]-- === 0) { // if we are the last use. remove all fields.
            delete this[symb];
    Severity: Minor
    Found in deps/v8/benchmarks/earley-boyer.js - About 1 hr to fix

      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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language