Showing 2,859 of 2,859 total issues

File earley-boyer.js has 3397 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// This file is automatically generated by scheme2js, except for the
// benchmark harness code at the beginning and end of the file.

var EarleyBoyer = new BenchmarkSuite('EarleyBoyer', 666463, [
  new Benchmark("Earley", function () { BgL_earleyzd2benchmarkzd2(); }),
Severity: Major
Found in deps/v8/benchmarks/earley-boyer.js - About 1 wk to fix

    Function RegExpBenchmark has 1675 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function RegExpBenchmark() {
      var re0 = /^ba/;
      var re1 = /(((\w+):\/\/)([^\/:]*)(:(\d+))?)?([^#?]*)(\?([^#]*))?(#(.*))?/;
      var re2 = /^\s*|\s*$/g;
      var re3 = /\bQBZPbageby_cynprubyqre\b/;
    Severity: Major
    Found in deps/v8/benchmarks/regexp.js - About 1 wk to fix

      File grokdump.py has 2621 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      #!/usr/bin/env python
      #
      # Copyright 2012 the V8 project authors. All rights reserved.
      # Redistribution and use in source and binary forms, with or without
      # modification, are permitted provided that the following conditions are
      Severity: Major
      Found in deps/v8/tools/grokdump.py - About 1 wk to fix

        File msvs.py has 2599 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # Copyright (c) 2012 Google Inc. All rights reserved.
        # Use of this source code is governed by a BSD-style license that can be
        # found in the LICENSE file.
        
        import collections
        Severity: Major
        Found in tools/gyp/pylib/gyp/generator/msvs.py - About 1 wk to fix

          Function GenerateOutput has a Cognitive Complexity of 299 (exceeds 5 allowed). Consider refactoring.
          Open

          def GenerateOutput(target_list, target_dicts, data, params):
            options = params['options']
            generator_flags = params.get('generator_flags', {})
            parallel_builds = generator_flags.get('xcode_parallel_builds', True)
            serialize_all_tests = \
          Severity: Minor
          Found in tools/gyp/pylib/gyp/generator/xcode.py - About 6 days to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function CheckToken has a Cognitive Complexity of 291 (exceeds 5 allowed). Consider refactoring.
          Open

            def CheckToken(self, token, state):
              """Checks a token, given the current parser_state, for warnings and errors.
          
              Args:
                token: The current token under consideration
          Severity: Minor
          Found in tools/closure_linter/closure_linter/ecmalintrules.py - About 5 days to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          File cpplint.py has 2110 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          #!/usr/bin/python2.4
          #
          # Copyright (c) 2009 Google Inc. All rights reserved.
          #
          # Redistribution and use in source and binary forms, with or without
          Severity: Major
          Found in tools/cpplint.py - About 5 days to fix

            File xcodeproj_file.py has 1903 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            # Copyright (c) 2012 Google Inc. All rights reserved.
            # Use of this source code is governed by a BSD-style license that can be
            # found in the LICENSE file.
            
            """Xcode project file generator.
            Severity: Major
            Found in tools/gyp/pylib/gyp/xcodeproj_file.py - About 5 days to fix

              File input.py has 1777 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              # Copyright (c) 2012 Google Inc. All rights reserved.
              # Use of this source code is governed by a BSD-style license that can be
              # found in the LICENSE file.
              
              from compiler.ast import Const
              Severity: Major
              Found in tools/gyp/pylib/gyp/input.py - About 4 days to fix

                File gflags.py has 1710 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                #!/usr/bin/env python
                
                # Copyright (c) 2007, Google Inc.
                # All rights reserved.
                #
                Severity: Major
                Found in tools/closure_linter/gflags.py - About 4 days to fix

                  File regexp.js has 1700 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  // Copyright 2010 the V8 project authors. All rights reserved.
                  // Redistribution and use in source and binary forms, with or without
                  // modification, are permitted provided that the following conditions are
                  // met:
                  //
                  Severity: Major
                  Found in deps/v8/benchmarks/regexp.js - About 4 days to fix

                    File ninja.py has 1664 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    # Copyright (c) 2013 Google Inc. All rights reserved.
                    # Use of this source code is governed by a BSD-style license that can be
                    # found in the LICENSE file.
                    
                    import copy
                    Severity: Major
                    Found in tools/gyp/pylib/gyp/generator/ninja.py - About 4 days to fix

                      File d8.js has 1485 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      // Copyright 2008 the V8 project authors. All rights reserved.
                      // Use of this source code is governed by a BSD-style license that can be
                      // found in the LICENSE file.
                      
                      "use strict";
                      Severity: Major
                      Found in deps/v8/src/d8.js - About 3 days to fix

                        File make.py has 1469 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        # Copyright (c) 2013 Google Inc. All rights reserved.
                        # Use of this source code is governed by a BSD-style license that can be
                        # found in the LICENSE file.
                        
                        # Notes:
                        Severity: Major
                        Found in tools/gyp/pylib/gyp/generator/make.py - About 3 days to fix

                          File MSVSSettings_test.py has 1454 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          #!/usr/bin/env python
                          
                          # Copyright (c) 2012 Google Inc. All rights reserved.
                          # Use of this source code is governed by a BSD-style license that can be
                          # found in the LICENSE file.
                          Severity: Major
                          Found in tools/gyp/pylib/gyp/MSVSSettings_test.py - About 3 days to fix

                            File fs.js has 1412 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/fs.js - About 3 days to fix

                              File crypto.js has 1296 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              /*
                               * Copyright (c) 2003-2005  Tom Wu
                               * All Rights Reserved.
                               *
                               * Permission is hereby granted, free of charge, to any person obtaining
                              Severity: Major
                              Found in deps/v8/benchmarks/crypto.js - About 3 days to fix

                                Function DebugResponseDetails has a Cognitive Complexity of 162 (exceeds 5 allowed). Consider refactoring.
                                Open

                                function DebugResponseDetails(response) {
                                  var details = { text: '', running: false };
                                
                                  try {
                                    if (!response.success()) {
                                Severity: Minor
                                Found in deps/v8/src/d8.js - About 3 days to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function PlotScriptComposer has a Cognitive Complexity of 162 (exceeds 5 allowed). Consider refactoring.
                                Open

                                function PlotScriptComposer(kResX, kResY, error_output) {
                                  // Constants.
                                  var kV8BinarySuffixes = ["/d8", "/libv8.so"];
                                  var kStackFrames = 8;             // Stack frames to display in the plot.
                                
                                
                                Severity: Minor
                                Found in deps/v8/tools/profviz/composer.js - About 3 days to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                File _debugger.js has 1185 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/_debugger.js - About 3 days to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language