Showing 1,370 of 2,859 total issues

Function Error has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

def Error(filename, linenum, category, confidence, message):
Severity: Minor
Found in tools/cpplint.py - About 35 mins to fix

    Function GitUpload has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def GitUpload(self, reviewer="", author="", force=False, cq=False,
    Severity: Minor
    Found in deps/v8/tools/push-to-trunk/git_recipes.py - About 35 mins to fix

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

        def __init__(self, name, start_address, end_address, origin, origin_offset):
      Severity: Minor
      Found in deps/v8/tools/ll_prof.py - About 35 mins to fix

        Function output_words has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          def output_words(self, f, start_address, end_address,
        Severity: Minor
        Found in deps/v8/tools/grokdump.py - About 35 mins to fix

          Function PrintReport has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def PrintReport(code_map, library_repo, arch, ticks, options):
          Severity: Minor
          Found in deps/v8/tools/ll_prof.py - About 35 mins to fix

            Function format_disasm_line has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              def format_disasm_line(
            Severity: Minor
            Found in deps/v8/tools/grokdump.py - About 35 mins to fix

              Function output_disasm_range has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                def output_disasm_range(
              Severity: Minor
              Found in deps/v8/tools/grokdump.py - About 35 mins to fix

                Function ExpandMacroDefinition has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                def ExpandMacroDefinition(lines, pos, name_pattern, macro, expander):
                Severity: Minor
                Found in deps/v8/tools/js2c.py - About 35 mins to fix

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

                    def __init__(self, command, dep_command, test_id, timeout, verbose):
                  Severity: Minor
                  Found in deps/v8/tools/testrunner/local/execution.py - About 35 mins to fix

                    Function Execute has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    def Execute(workspace, ctx, tests, sock, server):
                    Severity: Minor
                    Found in deps/v8/tools/testrunner/network/endpoint.py - About 35 mins to fix

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

                        def __init__(self, suites, progress_indicator, context, peers, workspace):
                      Severity: Minor
                      Found in deps/v8/tools/testrunner/network/network_execution.py - About 35 mins to fix

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

                          def __init__(self, pidfile, root, stdin="/dev/null",
                        Severity: Minor
                        Found in deps/v8/tools/testrunner/server/main.py - About 35 mins to fix

                          Function make_link_node has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          def make_link_node(rawtext, app, name, manpage_num, options):
                          Severity: Minor
                          Found in deps/uv/docs/src/sphinx-plugins/manpage.py - About 35 mins to fix

                            Function loadAuthorsFromGitLog has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                            function loadAuthorsFromGitLog(cb) {
                              var gitLog = child_process.spawn('git', GIT_LOG_COMMAND_ARGS);
                            
                              gitLog.on('close', function onGitLogClose(exitCode, signal) {
                                if (exitCode === 0 && signal === null) {
                            Severity: Minor
                            Found in tools/update-authors.js - About 35 mins 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 fill has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                            Buffer.prototype.fill = function fill(val, start, end) {
                              start = start >> 0;
                              end = (end === undefined) ? this.length : end >> 0;
                            
                              if (start < 0 || end > this.length)
                            Severity: Minor
                            Found in lib/buffer.js - About 35 mins 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 errnoException has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                            function errnoException(err, syscall, hostname) {
                              // FIXME(bnoordhuis) Remove this backwards compatibility shite and pass
                              // the true error to the user. ENOTFOUND is not even a proper POSIX error!
                              if (err === uv.UV_EAI_MEMORY ||
                                  err === uv.UV_EAI_NODATA ||
                            Severity: Minor
                            Found in lib/dns.js - About 35 mins 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 normalizeSpawnArguments has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                            function normalizeSpawnArguments(file /*, args, options*/) {
                              var args, options;
                            
                              if (Array.isArray(arguments[1])) {
                                args = arguments[1].slice(0);
                            Severity: Minor
                            Found in lib/child_process.js - About 35 mins 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 sh_getClasses has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                            function sh_getClasses(element) {
                              var result = [];
                              var htmlClass = element.className;
                              if (htmlClass && htmlClass.length > 0) {
                                var htmlClasses = htmlClass.split(' ');
                            Severity: Minor
                            Found in doc/sh_main.js - About 35 mins 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 addAuthors has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                            function addAuthors(authors) {
                              assert(typeof authors === 'string', 'authors must be a string');
                            
                              var authors = (latestAuthorsLineChunk + authors).split(PLATFORM_AGNOSTIC_EOL);
                              latestAuthorsLineChunk = '';
                            Severity: Minor
                            Found in tools/update-authors.js - About 35 mins 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 processList has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                            function processList(section) {
                              var list = section.list;
                              var values = [];
                              var current;
                              var stack = [];
                            Severity: Minor
                            Found in tools/doc/json.js - About 35 mins 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

                            Severity
                            Category
                            Status
                            Source
                            Language