Showing 517 of 2,859 total issues

Function FluidField has 285 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function FluidField(canvas) {
    function addFields(x, s, dt)
    {
        for (var i=0; i<size ; i++ ) x[i] += dt*s[i];
    }
Severity: Major
Found in deps/v8/benchmarks/navier-stokes.js - About 1 day to fix

    File _tls_legacy.js has 625 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    // Copyright Joyent, Inc. and other Node contributors.
    //
    // Permission is hereby granted, free of charge, to any person obtaining a
    // copy of this software and associated documentation files (the
    // "Software"), to deal in the Software without restriction, including
    Severity: Major
    Found in lib/_tls_legacy.js - About 1 day to fix

      File _stream_readable.js has 608 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      // Copyright Joyent, Inc. and other Node contributors.
      //
      // Permission is hereby granted, free of charge, to any person obtaining a
      // copy of this software and associated documentation files (the
      // "Software"), to deal in the Software without restriction, including
      Severity: Major
      Found in lib/_stream_readable.js - About 1 day to fix

        File node.js has 559 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        // Copyright Joyent, Inc. and other Node contributors.
        //
        // Permission is hereby granted, free of charge, to any person obtaining a
        // copy of this software and associated documentation files (the
        // "Software"), to deal in the Software without restriction, including
        Severity: Major
        Found in src/node.js - About 1 day to fix

          Function errorHandler has 232 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function errorHandler (er) {
            // console.error("errorHandler", er)
            if (!npm.config || !npm.config.loaded) {
              // logging won't work unless we pretend that it's ready
              er = er || new Error("Exit prior to config file resolving.")
          Severity: Major
          Found in deps/npm/lib/utils/error-handler.js - About 1 day to fix

            File util.js has 551 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            // Copyright Joyent, Inc. and other Node contributors.
            //
            // Permission is hereby granted, free of charge, to any person obtaining a
            // copy of this software and associated documentation files (the
            // "Software"), to deal in the Software without restriction, including
            Severity: Major
            Found in lib/util.js - About 1 day to fix

              Function masterInit has 228 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function masterInit() {
                cluster.workers = {};
              
                var intercom = new EventEmitter;
                cluster.settings = {};
              Severity: Major
              Found in lib/cluster.js - About 1 day to fix

                XcodeSettings has 62 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class XcodeSettings(object):
                  """A class that understands the gyp 'xcode_settings' object."""
                
                  # Populated lazily by _SdkPath(). Shared by all XcodeSettings, so cached
                  # at class-level for efficiency.
                Severity: Major
                Found in tools/gyp/pylib/gyp/xcode_emulation.py - About 1 day to fix

                  File cluster.js has 519 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  // Copyright Joyent, Inc. and other Node contributors.
                  //
                  // Permission is hereby granted, free of charge, to any person obtaining a
                  // copy of this software and associated documentation files (the
                  // "Software"), to deal in the Software without restriction, including
                  Severity: Major
                  Found in lib/cluster.js - About 1 day to fix

                    File ecmalintrules.py has 518 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    #!/usr/bin/env python
                    #
                    # Copyright 2008 The Closure Linter Authors. All Rights Reserved.
                    #
                    # Licensed under the Apache License, Version 2.0 (the "License");
                    Severity: Major
                    Found in tools/closure_linter/closure_linter/ecmalintrules.py - About 1 day to fix

                      ScriptTest has 57 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class ScriptTest(unittest.TestCase):
                        def MakeEmptyTempFile(self):
                          handle, name = tempfile.mkstemp()
                          os.close(handle)
                          self._tmp_files.append(name)
                      Severity: Major
                      Found in deps/v8/tools/push-to-trunk/test_scripts.py - About 1 day to fix

                        File url.js has 504 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        // Copyright Joyent, Inc. and other Node contributors.
                        //
                        // Permission is hereby granted, free of charge, to any person obtaining a
                        // copy of this software and associated documentation files (the
                        // "Software"), to deal in the Software without restriction, including
                        Severity: Major
                        Found in lib/url.js - About 1 day to fix

                          Function complete has 200 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          REPLServer.prototype.complete = function(line, callback) {
                            // There may be local variables to evaluate, try a nested REPL
                            if (!util.isUndefined(this.bufferedCommand) && this.bufferedCommand.length) {
                              // Get a new array of inputed lines
                              var tmp = this.lines.slice();
                          Severity: Major
                          Found in lib/repl.js - About 1 day to fix

                            Function resolveObject has 199 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            Url.prototype.resolveObject = function(relative) {
                              if (util.isString(relative)) {
                                var rel = new Url();
                                rel.parse(relative, false, true);
                                relative = rel;
                            Severity: Major
                            Found in lib/url.js - About 7 hrs to fix

                              Function REPLServer has 188 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function REPLServer(prompt, stream, eval_, useGlobal, ignoreUndefined) {
                                if (!(this instanceof REPLServer)) {
                                  return new REPLServer(prompt, stream, eval_, useGlobal, ignoreUndefined);
                                }
                              
                              
                              Severity: Major
                              Found in lib/repl.js - About 7 hrs to fix

                                Function parse has 170 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
                                  if (!util.isString(url)) {
                                    throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
                                  }
                                
                                
                                Severity: Major
                                Found in lib/url.js - About 6 hrs to fix

                                  Function nextToken has 168 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  sc_Tokenizer.prototype.nextToken = function() {
                                      var port = this.port;
                                  
                                      function isNumberChar(c) {
                                      return (c >= "0" && c <= "9");
                                  Severity: Major
                                  Found in deps/v8/benchmarks/earley-boyer.js - About 6 hrs to fix

                                    Function _ttyWrite has 165 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    Interface.prototype._ttyWrite = function(s, key) {
                                      key = key || {};
                                    
                                      // Ignore escape key - Fixes #2876
                                      if (key.name == 'escape') return;
                                    Severity: Major
                                    Found in lib/readline.js - About 6 hrs to fix

                                      Function DebugRequest has 165 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function DebugRequest(cmd_line) {
                                        // If the very first character is a { assume that a JSON request have been
                                        // entered as a command. Converting that to a JSON request is trivial.
                                        if (cmd_line && cmd_line.length > 0 && cmd_line.charAt(0) == '{') {
                                          this.request_ = cmd_line;
                                      Severity: Major
                                      Found in deps/v8/src/d8.js - About 6 hrs to fix

                                        Function sh_highlightString has 157 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function sh_highlightString(inputString, language) {
                                          if (/Konqueror/.test(navigator.userAgent)) {
                                            if (! language.konquered) {
                                              for (var s = 0; s < language.length; s++) {
                                                for (var p = 0; p < language[s].length; p++) {
                                        Severity: Major
                                        Found in doc/sh_main.js - About 6 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language