hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

Function try_link has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def try_link(self, body, headers=None, include_dirs=None, libraries=None,
Severity: Minor
Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/command/config.py - About 45 mins to fix

    Function make_release_tree has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
    Open

        def make_release_tree(self, base_dir, files):
            """Create the directory tree that will become the source
            distribution archive.  All directories implied by the filenames in
            'files' are created under 'base_dir', and then we hard link or copy
            (if hard linking is unavailable) those files into place.
    Severity: Minor
    Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/command/sdist.py - About 45 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 create_exe has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
    Open

        def create_exe (self, arcname, fullname, bitmap=None):
            import struct
    
            self.mkpath(self.dist_dir)
    

    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 get_outputs has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
    Open

        def get_outputs (self):
            # Assemble the outputs of all the sub-commands.
            outputs = []
            for cmd_name in self.get_sub_commands():
                cmd = self.get_finalized_command(cmd_name)
    Severity: Minor
    Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/command/install.py - About 45 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

    Avoid deeply nested control flow statements.
    Open

                            if os.path.isfile(f):
                                self.filelist.append(f)
    
    Severity: Major
    Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/command/sdist.py - About 45 mins to fix

      Function preprocess has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def preprocess(self, source, output_file=None, macros=None,
      Severity: Minor
      Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/ccompiler.py - About 45 mins to fix

        Function get_inidata has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            def get_inidata (self):
                # Return data describing the installation.
        
                lines = []
                metadata = self.distribution.metadata

        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 find_config_files has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            def find_config_files(self):
                """Find as many configuration files as should be processed for this
                platform, and return a list of filenames in the order in which they
                should be parsed.  The filenames returned are guaranteed to exist
                (modulo nasty race conditions).
        Severity: Minor
        Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/dist.py - About 45 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 _setup_compile has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def _setup_compile(self, outdir, macros, incdirs, sources, depends,
        Severity: Minor
        Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/ccompiler.py - About 45 mins to fix

          Function try_run has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def try_run(self, body, headers=None, include_dirs=None, libraries=None,
          Severity: Minor
          Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/command/config.py - About 45 mins to fix

            Function run has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
            Open

                def run(self):
                    if not self.libraries:
                        return
            
                    # Yech -- this is cut 'n pasted from build_ext.py!
            Severity: Minor
            Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/command/build_clib.py - About 45 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

            Avoid deeply nested control flow statements.
            Open

                                    if not choice:
                                        choice = 'n'
                                if choice.lower() == 'y':
            Severity: Major
            Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/command/register.py - About 45 mins to fix

              Function _link has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def _link(self, body, headers, include_dirs, libraries, library_dirs,
              Severity: Minor
              Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/command/config.py - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                Severity: Major
                Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/command/bdist_msi.py - About 45 mins to fix

                  Function make_archive has 6 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def make_archive(self, base_name, format, root_dir=None, base_dir=None,
                  Severity: Minor
                  Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/cmd.py - About 45 mins to fix

                    Function _compile has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
                    Severity: Minor
                    Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/emxccompiler.py - About 45 mins to fix

                      Function _compile has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
                      Severity: Minor
                      Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/unixccompiler.py - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                        Severity: Major
                        Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/command/bdist_msi.py - About 45 mins to fix

                          Function preprocess has 6 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def preprocess(self, source,
                          Severity: Minor
                          Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/unixccompiler.py - About 45 mins to fix

                            Function _compile has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
                            Severity: Minor
                            Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/ccompiler.py - About 45 mins to fix
                              Severity
                              Category
                              Status
                              Source
                              Language