hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

Consider simplifying this complex logical expression.
Open

                if LA64 == IDENTIFIER or LA64 == HEX_LITERAL or LA64 == OCTAL_LITERAL or LA64 == DECIMAL_LITERAL or LA64 == CHARACTER_LITERAL or LA64 == STRING_LITERAL or LA64 == FLOATING_POINT_LITERAL or LA64 == 62:
                    alt64 = 1
                elif LA64 == 72:
                    alt64 = 2
                elif LA64 == 73:
Severity: Critical
Found in BaseTools/Source/Python/Eot/CParser.py - About 3 hrs to fix

    Pickler has 26 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Pickler:
    
        def __init__(self, file, protocol=None):
            """This takes a file-like object for writing a pickle data stream.
    
    Severity: Minor
    Found in AppPkg/Applications/Python/Python-2.7.2/Lib/pickle.py - About 3 hrs to fix

      ModuleFinder has 26 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class ModuleFinder:
      
          def __init__(self, path=None, debug=0, excludes=[], replace_paths=[]):
              if path is None:
                  path = sys.path
      Severity: Minor
      Found in AppPkg/Applications/Python/Python-2.7.2/Lib/modulefinder.py - About 3 hrs to fix

        Telnet has 26 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class Telnet:
        
            """Telnet interface class.
        
            An instance of this class represents a connection to a telnet
        Severity: Minor
        Found in AppPkg/Applications/Python/Python-2.7.2/Lib/telnetlib.py - About 3 hrs to fix

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

          class Element(object):
              # <tag attrib>text<child/>...</tag>tail
          
              ##
              # (Attribute) Element tag.
          Severity: Minor
          Found in AppPkg/Applications/Python/Python-2.7.2/Lib/xml/etree/ElementTree.py - About 3 hrs to fix

            BaseSet has 26 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class BaseSet(object):
                """Common base class for mutable and immutable sets."""
            
                __slots__ = ['_data']
            
            Severity: Minor
            Found in AppPkg/Applications/Python/Python-2.7.2/Lib/sets.py - About 3 hrs to fix

              ProfileBrowser has 26 functions (exceeds 20 allowed). Consider refactoring.
              Open

                  class ProfileBrowser(cmd.Cmd):
                      def __init__(self, profile=None):
                          cmd.Cmd.__init__(self)
                          self.prompt = "% "
                          self.stats = None
              Severity: Minor
              Found in AppPkg/Applications/Python/Python-2.7.2/Lib/pstats.py - About 3 hrs to fix

                Wave_write has 26 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class Wave_write:
                    """Variables used in this class:
                
                    These variables are user settable through appropriate methods
                    of this class:
                Severity: Minor
                Found in AppPkg/Applications/Python/Python-2.7.2/Lib/wave.py - About 3 hrs to fix

                  SpooledTemporaryFile has 26 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class SpooledTemporaryFile:
                      """Temporary file wrapper, specialized to switch from
                      StringIO to a real file when it exceeds a certain size or
                      when a fileno is needed.
                      """
                  Severity: Minor
                  Found in AppPkg/Applications/Python/Python-2.7.2/Lib/tempfile.py - About 3 hrs to fix

                    ASDLParser has 26 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class ASDLParser(spark.GenericParser, object):
                        def __init__(self):
                            super(ASDLParser, self).__init__("module")
                    
                        def typestring(self, tok):
                    Severity: Minor
                    Found in AppPkg/Applications/Python/Python-2.7.2/Parser/asdl.py - About 3 hrs to fix

                      Memory has 26 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class Memory:
                          def __init__( self, helper ):
                              self.helper = helper
                      
                          ####################################################################################
                      Severity: Minor
                      Found in vector-uefi/fd/tool/chipsec/hal/physmem.py - About 3 hrs to fix

                        Pickler has 26 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class Pickler:
                        
                            def __init__(self, file, protocol=None):
                                """This takes a file-like object for writing a pickle data stream.
                        
                        Severity: Minor
                        Found in vector-uefi/fd/efi/StdLib/lib/python.27/pickle.py - About 3 hrs to fix

                          ModuleFinder has 26 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          class ModuleFinder:
                          
                              def __init__(self, path=None, debug=0, excludes=[], replace_paths=[]):
                                  if path is None:
                                      path = sys.path
                          Severity: Minor
                          Found in vector-uefi/fd/efi/StdLib/lib/python.27/modulefinder.py - About 3 hrs to fix

                            Telnet has 26 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class Telnet:
                            
                                """Telnet interface class.
                            
                                An instance of this class represents a connection to a telnet
                            Severity: Minor
                            Found in vector-uefi/fd/efi/StdLib/lib/python.27/telnetlib.py - About 3 hrs to fix

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

                              class Element(object):
                                  # <tag attrib>text<child/>...</tag>tail
                              
                                  ##
                                  # (Attribute) Element tag.
                              Severity: Minor
                              Found in vector-uefi/fd/efi/StdLib/lib/python.27/xml/etree/ElementTree.py - About 3 hrs to fix

                                BaseSet has 26 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                class BaseSet(object):
                                    """Common base class for mutable and immutable sets."""
                                
                                    __slots__ = ['_data']
                                
                                Severity: Minor
                                Found in vector-uefi/fd/efi/StdLib/lib/python.27/sets.py - About 3 hrs to fix

                                  ProfileBrowser has 26 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                      class ProfileBrowser(cmd.Cmd):
                                          def __init__(self, profile=None):
                                              cmd.Cmd.__init__(self)
                                              self.prompt = "% "
                                              self.stats = None
                                  Severity: Minor
                                  Found in vector-uefi/fd/efi/StdLib/lib/python.27/pstats.py - About 3 hrs to fix

                                    Wave_write has 26 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class Wave_write:
                                        """Variables used in this class:
                                    
                                        These variables are user settable through appropriate methods
                                        of this class:
                                    Severity: Minor
                                    Found in vector-uefi/fd/efi/StdLib/lib/python.27/wave.py - About 3 hrs to fix

                                      SpooledTemporaryFile has 26 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class SpooledTemporaryFile:
                                          """Temporary file wrapper, specialized to switch from
                                          StringIO to a real file when it exceeds a certain size or
                                          when a fileno is needed.
                                          """
                                      Severity: Minor
                                      Found in vector-uefi/fd/efi/StdLib/lib/python.27/tempfile.py - About 3 hrs to fix

                                        File gopher.py has 291 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        #! /usr/bin/env python
                                        
                                        # A simple gopher client.
                                        #
                                        # Usage: gopher [ [selector] host [port] ]
                                        Severity: Minor
                                        Found in AppPkg/Applications/Python/Python-2.7.2/Demo/sockets/gopher.py - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language