hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

File cp1257.py has 287 lines of code (exceeds 250 allowed). Consider refactoring.
Open

""" Python Character Mapping Codec cp1257 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1257.TXT' with gencodec.py.

"""#"

import codecs
Severity: Minor
Found in vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1257.py - About 2 hrs to fix

    File iso8859_10.py has 287 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    """ Python Character Mapping Codec iso8859_10 generated from 'MAPPINGS/ISO8859/8859-10.TXT' with gencodec.py.
    
    """#"
    
    import codecs
    Severity: Minor
    Found in vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_10.py - About 2 hrs to fix

      File iso8859_13.py has 287 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      """ Python Character Mapping Codec iso8859_13 generated from 'MAPPINGS/ISO8859/8859-13.TXT' with gencodec.py.
      
      """#"
      
      import codecs
      Severity: Minor
      Found in vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_13.py - About 2 hrs to fix

        File mac_croatian.py has 287 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        """ Python Character Mapping Codec mac_croatian generated from 'MAPPINGS/VENDORS/APPLE/CROATIAN.TXT' with gencodec.py.
        
        """#"
        
        import codecs
        Severity: Minor
        Found in vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_croatian.py - About 2 hrs to fix

          Function CreatePcdDatabasePhaseSpecificAutoGen has 72 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          def CreatePcdDatabasePhaseSpecificAutoGen (Platform, Phase):
              AutoGenC = TemplateString()
              AutoGenH = TemplateString()
          
              Dict = {
          Severity: Major
          Found in BaseTools/Source/Python/AutoGen/GenPcdDb.py - About 2 hrs to fix

            Function main has 72 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            def main():
                # overridable context
                prefix = None                       # settable with -p option
                exec_prefix = None                  # settable with -P option
                extensions = []
            Severity: Major
            Found in AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/freeze.py - About 2 hrs to fix

              File poplib.py has 285 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              """A POP3 client class.
              
              Based on the J. Myers POP3 draft, Jan. 96
              """
              
              Severity: Minor
              Found in AppPkg/Applications/Python/Python-2.7.2/Lib/poplib.py - About 2 hrs to fix

                File poplib.py has 285 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                """A POP3 client class.
                
                Based on the J. Myers POP3 draft, Jan. 96
                """
                
                Severity: Minor
                Found in vector-uefi/fd/efi/StdLib/lib/python.27/poplib.py - About 2 hrs to fix

                  Dsc has 25 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class Dsc(DscObject):
                      _NullClassIndex = 0
                  
                      def __init__(self, Filename=None, IsToDatabase=False, IsToPlatform=False, WorkspaceDir=None, Database=None):
                          self.Identification = Identification()
                  Severity: Minor
                  Found in BaseTools/Source/Python/Common/DscClassObject.py - About 2 hrs to fix

                    IpiDatabase has 25 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class IpiDatabase(object):
                        def __init__(self, DbPath):
                            Dir = os.path.dirname(DbPath)
                            if not os.path.isdir(Dir):
                                os.mkdir(Dir)
                    Severity: Minor
                    Found in BaseTools/Source/Python/UPT/Core/IpiDb.py - About 2 hrs to fix

                      SMTP has 25 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class SMTP:
                          """This class manages a connection to an SMTP or ESMTP server.
                          SMTP Objects:
                              SMTP objects have the following attributes:
                                  helo_resp
                      Severity: Minor
                      Found in AppPkg/Applications/Python/Python-2.7.2/Lib/smtplib.py - About 2 hrs to fix

                        Element has 25 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class Element(Node):
                            nodeType = Node.ELEMENT_NODE
                            nodeValue = None
                            schemaType = _no_type
                        
                        Severity: Minor
                        Found in AppPkg/Applications/Python/Python-2.7.2/Lib/xml/dom/minidom.py - About 2 hrs to fix

                          Random has 25 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          class Random(_random.Random):
                              """Random number generator base class used by bound module functions.
                          
                              Used to instantiate instances of Random to get generators that don't
                              share state.  Especially useful for multi-threaded programs, creating
                          Severity: Minor
                          Found in AppPkg/Applications/Python/Python-2.7.2/Lib/random.py - About 2 hrs to fix

                            Folder has 25 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class Folder:
                                """Class representing a particular folder."""
                            
                                def __init__(self, mh, name):
                                    """Constructor."""
                            Severity: Minor
                            Found in AppPkg/Applications/Python/Python-2.7.2/Lib/mhlib.py - About 2 hrs to fix

                              SPI has 25 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              class SPI:
                                  def __init__( self, cs ):
                                      self.cs = cs
                                      #self.rcba_spi_base = get_MMIO_base_address( self.cs, MMIO_BAR_LPCRCBA_SPI )
                                      self.rcba_spi_base = get_SPI_MMIO_base( self.cs )
                              Severity: Minor
                              Found in vector-uefi/fd/tool/chipsec/hal/spi.py - About 2 hrs to fix

                                SMTP has 25 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                class SMTP:
                                    """This class manages a connection to an SMTP or ESMTP server.
                                    SMTP Objects:
                                        SMTP objects have the following attributes:
                                            helo_resp
                                Severity: Minor
                                Found in vector-uefi/fd/efi/StdLib/lib/python.27/smtplib.py - About 2 hrs to fix

                                  Element has 25 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class Element(Node):
                                      nodeType = Node.ELEMENT_NODE
                                      nodeValue = None
                                      schemaType = _no_type
                                  
                                  Severity: Minor
                                  Found in vector-uefi/fd/efi/StdLib/lib/python.27/xml/dom/minidom.py - About 2 hrs to fix

                                    Random has 25 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class Random(_random.Random):
                                        """Random number generator base class used by bound module functions.
                                    
                                        Used to instantiate instances of Random to get generators that don't
                                        share state.  Especially useful for multi-threaded programs, creating
                                    Severity: Minor
                                    Found in vector-uefi/fd/efi/StdLib/lib/python.27/random.py - About 2 hrs to fix

                                      Folder has 25 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class Folder:
                                          """Class representing a particular folder."""
                                      
                                          def __init__(self, mh, name):
                                              """Constructor."""
                                      Severity: Minor
                                      Found in vector-uefi/fd/efi/StdLib/lib/python.27/mhlib.py - About 2 hrs to fix

                                        File StringIO.py has 283 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        r"""File-like objects that read from or write to a string buffer.
                                        
                                        This implements (nearly) all stdio methods.
                                        
                                        f = StringIO()      # ready for writing
                                        Severity: Minor
                                        Found in AppPkg/Applications/Python/Python-2.7.2/Lib/StringIO.py - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language