hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

File FdfParserLite.py has 2209 lines of code (exceeds 250 allowed). Consider refactoring.
Open

## @file
# parse FDF file
#
#  Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
#
Severity: Major
Found in BaseTools/Source/Python/Common/FdfParserLite.py - About 6 days to fix

    File c.py has 2201 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    ## @file
    # This file is used to be the c coding style checking of ECC tool
    #
    # Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
    # This program and the accompanying materials
    Severity: Major
    Found in BaseTools/Source/Python/Ecc/c.py - About 6 days to fix

      File AutoGen.py has 2180 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      ## @file
      # Generate AutoGen.h, AutoGen.c and *.depex files
      #
      # Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
      # This program and the accompanying materials
      Severity: Major
      Found in BaseTools/Source/Python/AutoGen/AutoGen.py - About 6 days to fix

        File CLexer.py has 2125 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # $ANTLR 3.0.1 C.g 2010-02-23 09:58:53
        
        from antlr3 import *
        from antlr3.compat import set, frozenset
                                
        Severity: Major
        Found in BaseTools/Source/Python/Ecc/CLexer.py - About 5 days to fix

          File CLexer.py has 2125 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # $ANTLR 3.0.1 C.g 2010-02-23 09:58:53
          
          from antlr3 import *
          from antlr3.compat import set, frozenset
                                  
          Severity: Major
          Found in BaseTools/Source/Python/Eot/CLexer.py - About 5 days to fix

            Function CreatePcdDatabasePhaseSpecificAutoGen has a Cognitive Complexity of 285 (exceeds 5 allowed). Consider refactoring.
            Open

            def CreatePcdDatabasePhaseSpecificAutoGen (Platform, Phase):
                AutoGenC = TemplateString()
                AutoGenH = TemplateString()
            
                Dict = {
            Severity: Minor
            Found in BaseTools/Source/Python/AutoGen/GenPcdDb.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 WorkspaceDatabase.py has 2064 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            ## @file
            # This file is used to create a database used by build tool
            #
            # Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
            # This program and the accompanying materials
            Severity: Major
            Found in BaseTools/Source/Python/Workspace/WorkspaceDatabase.py - About 5 days to fix

              File tarfile.py has 2008 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              Severity: Major
              Found in AppPkg/Applications/Python/Python-2.7.2/Lib/tarfile.py - About 5 days to fix

                File tarfile.py has 2008 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                Severity: Major
                Found in vector-uefi/fd/efi/StdLib/lib/python.27/tarfile.py - About 5 days to fix

                  File pydoc.py has 1979 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  #!/usr/bin/env python
                  # -*- coding: latin-1 -*-
                  """Generate Python documentation in HTML or text for interactive use.
                  
                  In the Python interpreter, do "from pydoc import help" to provide online
                  Severity: Major
                  Found in AppPkg/Applications/Python/PyMod-2.7.2/Lib/pydoc.py - About 5 days to fix

                    File pydoc.py has 1979 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    #!/usr/bin/env python
                    # -*- coding: latin-1 -*-
                    """Generate Python documentation in HTML or text for interactive use.
                    
                    In the Python interpreter, do "from pydoc import help" to provide online
                    Severity: Major
                    Found in vector-uefi/fd/efi/StdLib/lib/python.27/pydoc.py - About 5 days to fix

                      File pydoc.py has 1975 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      #!/usr/bin/env python
                      # -*- coding: latin-1 -*-
                      """Generate Python documentation in HTML or text for interactive use.
                      
                      In the Python interpreter, do "from pydoc import help" to provide online
                      Severity: Major
                      Found in AppPkg/Applications/Python/Python-2.7.2/Lib/pydoc.py - About 5 days to fix

                        File doctest.py has 1934 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        # Module doctest.
                        # Released to the public domain 16-Jan-2001, by Tim Peters (tim@python.org).
                        # Major enhancements and refactoring by:
                        #     Jim Fulton
                        #     Edward Loper
                        Severity: Major
                        Found in AppPkg/Applications/Python/Python-2.7.2/Lib/doctest.py - About 5 days to fix

                          File doctest.py has 1934 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          # Module doctest.
                          # Released to the public domain 16-Jan-2001, by Tim Peters (tim@python.org).
                          # Major enhancements and refactoring by:
                          #     Jim Fulton
                          #     Edward Loper
                          Severity: Major
                          Found in vector-uefi/fd/efi/StdLib/lib/python.27/doctest.py - About 5 days to fix

                            TexinfoParser has 260 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class TexinfoParser:
                            
                                COPYRIGHT_SYMBOL = "&copy;"
                                FN_ID_PATTERN = "(%(id)s)"
                                FN_SOURCE_PATTERN = '<A NAME=footnoteref%(id)s' \
                            Severity: Major
                            Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 5 days to fix

                              File mailbox.py has 1842 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              #! /usr/bin/env python
                              
                              """Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes."""
                              
                              # Notes for authors of new mailbox subclasses:
                              Severity: Major
                              Found in AppPkg/Applications/Python/Python-2.7.2/Lib/mailbox.py - About 5 days to fix

                                File mailbox.py has 1842 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                #! /usr/bin/env python
                                
                                """Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes."""
                                
                                # Notes for authors of new mailbox subclasses:
                                Severity: Major
                                Found in vector-uefi/fd/efi/StdLib/lib/python.27/mailbox.py - About 5 days to fix

                                  File pickletools.py has 1760 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  '''"Executable documentation" for the pickle module.
                                  
                                  Extensive comments about the pickle protocols and pickle-machine opcodes
                                  can be found here.  Some functions meant for external use:
                                  
                                  Severity: Major
                                  Found in AppPkg/Applications/Python/Python-2.7.2/Lib/pickletools.py - About 4 days to fix

                                    File pickletools.py has 1760 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    '''"Executable documentation" for the pickle module.
                                    
                                    Extensive comments about the pickle protocols and pickle-machine opcodes
                                    can be found here.  Some functions meant for external use:
                                    
                                    Severity: Major
                                    Found in vector-uefi/fd/efi/StdLib/lib/python.27/pickletools.py - About 4 days to fix

                                      Function direct_abstract_declarator has a Cognitive Complexity of 216 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                          def direct_abstract_declarator(self, ):
                                      
                                              direct_abstract_declarator_StartIndex = self.input.index()
                                              try:
                                                  try:
                                      Severity: Minor
                                      Found in BaseTools/Source/Python/Ecc/CParser.py - About 4 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

                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language