hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

Function declaration has a Cognitive Complexity of 77 (exceeds 5 allowed). Consider refactoring.
Open

    def declaration(self, ):

        declaration_StartIndex = self.input.index()
        a = None
        d = None
Severity: Minor
Found in BaseTools/Source/Python/Ecc/CParser.py - About 1 day 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 declaration has a Cognitive Complexity of 77 (exceeds 5 allowed). Consider refactoring.
Open

    def declaration(self, ):

        declaration_StartIndex = self.input.index()
        a = None
        d = None
Severity: Minor
Found in BaseTools/Source/Python/Eot/CParser.py - About 1 day 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 cp862.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
Open

""" Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP862.TXT' with gencodec.py.

"""#"

import codecs
Severity: Major
Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp862.py - About 1 day to fix

    File cp860.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP860.TXT' with gencodec.py.
    
    """#"
    
    import codecs
    Severity: Major
    Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp860.py - About 1 day to fix

      File cp865.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP865.TXT' with gencodec.py.
      
      """#"
      
      import codecs
      Severity: Major
      Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp865.py - About 1 day to fix

        File cp855.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP855.TXT' with gencodec.py.
        
        """#"
        
        import codecs
        Severity: Major
        Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp855.py - About 1 day to fix

          File mac_arabic.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          """ Python Character Mapping Codec generated from 'VENDORS/APPLE/ARABIC.TXT' with gencodec.py.
          
          """#"
          
          import codecs
          Severity: Major
          Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_arabic.py - About 1 day to fix

            File cp863.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP863.TXT' with gencodec.py.
            
            """#"
            
            import codecs
            Severity: Major
            Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp863.py - About 1 day to fix

              File cp861.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP861.TXT' with gencodec.py.
              
              """#"
              
              import codecs
              Severity: Major
              Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp861.py - About 1 day to fix

                File cp737.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                """ Python Character Mapping Codec cp737 generated from 'VENDORS/MICSFT/PC/CP737.TXT' with gencodec.py.
                
                """#"
                
                import codecs
                Severity: Major
                Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp737.py - About 1 day to fix

                  File cp858.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  """ Python Character Mapping Codec for CP858, modified from cp850.
                  
                  """
                  
                  import codecs
                  Severity: Major
                  Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp858.py - About 1 day to fix

                    File cp852.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP852.TXT' with gencodec.py.
                    
                    """#"
                    
                    import codecs
                    Severity: Major
                    Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp852.py - About 1 day to fix

                      File cp850.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP850.TXT' with gencodec.py.
                      
                      """#"
                      
                      import codecs
                      Severity: Major
                      Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp850.py - About 1 day to fix

                        File cp437.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        """ Python Character Mapping Codec cp437 generated from 'VENDORS/MICSFT/PC/CP437.TXT' with gencodec.py.
                        
                        """#"
                        
                        import codecs
                        Severity: Major
                        Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp437.py - About 1 day to fix

                          File cp775.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          """ Python Character Mapping Codec cp775 generated from 'VENDORS/MICSFT/PC/CP775.TXT' with gencodec.py.
                          
                          """#"
                          
                          import codecs
                          Severity: Major
                          Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp775.py - About 1 day to fix

                            File cp866.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP866.TXT' with gencodec.py.
                            
                            """#"
                            
                            import codecs
                            Severity: Major
                            Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp866.py - About 1 day to fix

                              File cp737.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              """ Python Character Mapping Codec cp737 generated from 'VENDORS/MICSFT/PC/CP737.TXT' with gencodec.py.
                              
                              """#"
                              
                              import codecs
                              Severity: Major
                              Found in vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp737.py - About 1 day to fix

                                File cp862.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP862.TXT' with gencodec.py.
                                
                                """#"
                                
                                import codecs
                                Severity: Major
                                Found in vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp862.py - About 1 day to fix

                                  File cp852.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP852.TXT' with gencodec.py.
                                  
                                  """#"
                                  
                                  import codecs
                                  Severity: Major
                                  Found in vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp852.py - About 1 day to fix

                                    File cp855.py has 675 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP855.TXT' with gencodec.py.
                                    
                                    """#"
                                    
                                    import codecs
                                    Severity: Major
                                    Found in vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp855.py - About 1 day to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language