hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

File traceback.py has 266 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"""Extract, format and print information about Python stack traces."""

import linecache
import sys
import types
Severity: Minor
Found in vector-uefi/fd/efi/StdLib/lib/python.27/traceback.py - About 2 hrs to fix

    File cygwinccompiler.py has 266 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    """distutils.cygwinccompiler
    
    Provides the CygwinCCompiler class, a subclass of UnixCCompiler that
    handles the Cygwin port of the GNU C compiler to Windows.  It also contains
    the Mingw32CCompiler class which handles the mingw32 port of GCC (same as
    Severity: Minor
    Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/cygwinccompiler.py - About 2 hrs to fix

      File ast.py has 266 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # -*- coding: utf-8 -*-
      """
          ast
          ~~~
      
      Severity: Minor
      Found in vector-uefi/fd/efi/StdLib/lib/python.27/ast.py - About 2 hrs to fix

        File Lists.py has 264 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        from pybench import Test
        
        class SimpleListManipulation(Test):
        
            version = 2.0
        Severity: Minor
        Found in AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/Lists.py - About 2 hrs to fix

          File htmlentitydefs.py has 264 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          """HTML character entity references."""
          
          # maps the HTML entity name to the Unicode codepoint
          name2codepoint = {
              'AElig':    0x00c6, # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
          Severity: Minor
          Found in AppPkg/Applications/Python/Python-2.7.2/Lib/htmlentitydefs.py - About 2 hrs to fix

            File htmlentitydefs.py has 264 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            """HTML character entity references."""
            
            # maps the HTML entity name to the Unicode codepoint
            name2codepoint = {
                'AElig':    0x00c6, # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
            Severity: Minor
            Found in vector-uefi/fd/efi/StdLib/lib/python.27/htmlentitydefs.py - About 2 hrs to fix

              Consider simplifying this complex logical expression.
              Open

                                  if (LA67_1 == EOF or LA67_1 == 25 or (27 <= LA67_1 <= 28) or LA67_1 == 44 or LA67_1 == 47 or LA67_1 == 53 or (62 <= LA67_1 <= 66) or (68 <= LA67_1 <= 73) or (75 <= LA67_1 <= 77) or (80 <= LA67_1 <= 102)) :
                                      alt67 = 1
                                  elif (LA67_1 == IDENTIFIER or LA67_1 == STRING_LITERAL) :
                                      alt67 = 2
                                  else:
              Severity: Critical
              Found in BaseTools/Source/Python/Ecc/CParser.py - About 2 hrs to fix

                Consider simplifying this complex logical expression.
                Open

                                if ((IDENTIFIER <= LA94_0 <= FLOATING_POINT_LITERAL) or (25 <= LA94_0 <= 26) or (29 <= LA94_0 <= 43) or (45 <= LA94_0 <= 46) or (48 <= LA94_0 <= 62) or LA94_0 == 66 or (68 <= LA94_0 <= 69) or (72 <= LA94_0 <= 74) or (77 <= LA94_0 <= 79) or (103 <= LA94_0 <= 108) or (110 <= LA94_0 <= 117)) :
                                    alt94 = 1
                                if alt94 == 1:
                Severity: Critical
                Found in BaseTools/Source/Python/Ecc/CParser.py - About 2 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                                      if (LA67_1 == EOF or LA67_1 == 25 or (27 <= LA67_1 <= 28) or LA67_1 == 44 or LA67_1 == 47 or LA67_1 == 53 or (62 <= LA67_1 <= 66) or (68 <= LA67_1 <= 73) or (75 <= LA67_1 <= 77) or (80 <= LA67_1 <= 102)) :
                                          alt67 = 1
                                      elif (LA67_1 == IDENTIFIER or LA67_1 == STRING_LITERAL) :
                                          alt67 = 2
                                      else:
                  Severity: Critical
                  Found in BaseTools/Source/Python/Eot/CParser.py - About 2 hrs to fix

                    Consider simplifying this complex logical expression.
                    Open

                                    if ((IDENTIFIER <= LA94_0 <= FLOATING_POINT_LITERAL) or (25 <= LA94_0 <= 26) or (29 <= LA94_0 <= 43) or (45 <= LA94_0 <= 46) or (48 <= LA94_0 <= 62) or LA94_0 == 66 or (68 <= LA94_0 <= 69) or (72 <= LA94_0 <= 74) or (77 <= LA94_0 <= 79) or (103 <= LA94_0 <= 108) or (110 <= LA94_0 <= 117)) :
                                        alt94 = 1
                                    if alt94 == 1:
                    Severity: Critical
                    Found in BaseTools/Source/Python/Eot/CParser.py - About 2 hrs to fix

                      HTMLDoc has 22 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class HTMLDoc(Doc):
                          """Formatter class for HTML documentation."""
                      
                          # ------------------------------------------- HTML formatting utilities
                      
                      Severity: Minor
                      Found in AppPkg/Applications/Python/PyMod-2.7.2/Lib/pydoc.py - About 2 hrs to fix

                        RCS has 22 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class RCS:
                        
                            """RCS interface class (local filesystem version).
                        
                            An instance of this class represents a directory with rcs version
                        Severity: Minor
                        Found in AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/rcslib.py - About 2 hrs to fix

                          SSLSocket has 22 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          class SSLSocket(socket):
                          
                              """This class implements a subtype of socket.socket that wraps
                              the underlying OS socket in an SSL context when necessary, and
                              provides read and write methods over that channel."""
                          Severity: Minor
                          Found in AppPkg/Applications/Python/Python-2.7.2/Lib/ssl.py - About 2 hrs to fix

                            HTMLDoc has 22 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class HTMLDoc(Doc):
                                """Formatter class for HTML documentation."""
                            
                                # ------------------------------------------- HTML formatting utilities
                            
                            Severity: Minor
                            Found in AppPkg/Applications/Python/Python-2.7.2/Lib/pydoc.py - About 2 hrs to fix

                              WeakKeyDictionary has 22 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              class WeakKeyDictionary(UserDict.UserDict):
                                  """ Mapping class that references keys weakly.
                              
                                  Entries in the dictionary will be discarded when there is no
                                  longer a strong reference to the key. This can be used to
                              Severity: Minor
                              Found in AppPkg/Applications/Python/Python-2.7.2/Lib/weakref.py - About 2 hrs to fix

                                MH has 22 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                class MH(Mailbox):
                                    """An MH mailbox."""
                                
                                    def __init__(self, path, factory=None, create=True):
                                        """Initialize an MH instance."""
                                Severity: Minor
                                Found in AppPkg/Applications/Python/Python-2.7.2/Lib/mailbox.py - About 2 hrs to fix

                                  Complex has 22 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class Complex(Number):
                                      """Complex defines the operations that work on the builtin complex type.
                                  
                                      In short, those are: a conversion to complex, .real, .imag, +, -,
                                      *, /, abs(), .conjugate, ==, and !=.
                                  Severity: Minor
                                  Found in AppPkg/Applications/Python/Python-2.7.2/Lib/numbers.py - About 2 hrs to fix

                                    NamedNodeMap has 22 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class NamedNodeMap(object):
                                        """The attribute list is a transient interface to the underlying
                                        dictionaries.  Mutations here will change the underlying element's
                                        dictionary.
                                    
                                    Severity: Minor
                                    Found in AppPkg/Applications/Python/Python-2.7.2/Lib/xml/dom/minidom.py - About 2 hrs to fix

                                      UUID has 22 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class UUID(object):
                                          """Instances of the UUID class represent UUIDs as specified in RFC 4122.
                                          UUID objects are immutable, hashable, and usable as dictionary keys.
                                          Converting a UUID to a string with str() yields something in the form
                                          '12345678-1234-1234-1234-123456789abc'.  The UUID constructor accepts
                                      Severity: Minor
                                      Found in AppPkg/Applications/Python/Python-2.7.2/Lib/uuid.py - About 2 hrs to fix

                                        Aifc_read has 22 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class Aifc_read:
                                            # Variables used in this class:
                                            #
                                            # These variables are available to the user though appropriate
                                            # methods of this class:
                                        Severity: Minor
                                        Found in AppPkg/Applications/Python/Python-2.7.2/Lib/aifc.py - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language