hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

Consider simplifying this complex logical expression.
Open

                    if LA74 == IDENTIFIER:
                        LA74_256 = self.input.LA(3)

                        if (self.synpred142()) :
                            alt74 = 1
Severity: Major
Found in BaseTools/Source/Python/Eot/CParser.py - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

                            if LA95 == IDENTIFIER:
                                LA95_259 = self.input.LA(3)
    
                                if (self.synpred188()) :
                                    alt95 = 1
    Severity: Major
    Found in BaseTools/Source/Python/Eot/CParser.py - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

                          if (LA35_1 == 65) :
                              alt35 = 2
                          elif ((IDENTIFIER <= LA35_1 <= FLOATING_POINT_LITERAL) or LA35_1 == 62 or LA35_1 == 66 or (68 <= LA35_1 <= 69) or (72 <= LA35_1 <= 74) or (77 <= LA35_1 <= 79)) :
                              alt35 = 1
                          else:
      Severity: Major
      Found in BaseTools/Source/Python/Eot/CParser.py - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                                if LA95 == 62:
                                    LA95_283 = self.input.LA(3)
        
                                    if (self.synpred188()) :
                                        alt95 = 1
        Severity: Major
        Found in BaseTools/Source/Python/Eot/CParser.py - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

              if ItemType == 'Protocol' and ItemMode == 'Produced':
                  LibraryList = EotGlobalData.gProducedProtocolLibrary
              elif ItemType == 'Protocol' and ItemMode == 'Consumed':
                  LibraryList = EotGlobalData.gConsumedProtocolLibrary
              elif ItemType == 'Protocol' and ItemMode == 'Callback':
          Severity: Major
          Found in BaseTools/Source/Python/Eot/Parser.py - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                if type(object) is _OLD_INSTANCE_TYPE:
                    # If the passed object is an instance of an old-style class,
                    # document its available methods instead of its value.
                    object = object.__class__
                elif not (inspect.ismodule(object) or
            Severity: Major
            Found in AppPkg/Applications/Python/PyMod-2.7.2/Lib/pydoc.py - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                  if type(object) is _OLD_INSTANCE_TYPE:
                      # If the passed object is an instance of an old-style class,
                      # document its available methods instead of its value.
                      object = object.__class__
                  elif not (inspect.ismodule(object) or
              Severity: Major
              Found in AppPkg/Applications/Python/Python-2.7.2/Lib/pydoc.py - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                            if tokentype == DEDENT:
                                lineno, thisindent = start
                                # close nested classes and defs
                                while stack and stack[-1][1] >= thisindent:
                                    del stack[-1]
                Severity: Major
                Found in AppPkg/Applications/Python/Python-2.7.2/Lib/pyclbr.py - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                      if ((year >= EPOCH_YEAR) and (1 <= month <= 12) and (1 <= mday <= 31) and
                          (0 <= hour <= 24) and (0 <= min <= 59) and (0 <= sec <= 61)):
                          return timegm(tt)
                      else:
                          return None
                  Severity: Major
                  Found in AppPkg/Applications/Python/Python-2.7.2/Lib/cookielib.py - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                                if c == '_' and header:
                                    new = new + ' '; i = i+1
                                elif c != ESCAPE:
                                    new = new + c; i = i+1
                                elif i+1 == n and not partial:
                    Severity: Major
                    Found in AppPkg/Applications/Python/Python-2.7.2/Lib/quopri.py - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if self.user and (self.prefix or self.exec_prefix or self.home or
                                      self.install_base or self.install_platbase):
                                  raise DistutilsOptionError("can't combine user with with prefix/"
                                                             "exec_prefix/home or install_(plat)base")
                      
                      Severity: Major
                      Found in AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/command/install.py - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                                    if ((self.install_lib is None and
                                         self.install_purelib is None and
                                         self.install_platlib is None) or
                                        self.install_headers is None or
                                        self.install_scripts is None or
                        Severity: Major
                        Found in AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/command/install.py - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                                      if not (isinstance(defn, tuple) and
                                              (len (defn) == 1 or
                                               (len (defn) == 2 and
                                                (isinstance(defn[1], str) or defn[1] is None))) and
                                              isinstance(defn[0], str)):
                          Severity: Major
                          Found in AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/ccompiler.py - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                    if isinstance(node, Str):
                                        return node.s
                                    elif isinstance(node, Num):
                                        return node.n
                                    elif isinstance(node, Tuple):
                            Severity: Major
                            Found in AppPkg/Applications/Python/Python-2.7.2/Lib/ast.py - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

                                              if w1 == 'default':
                                                  default = 1
                                              elif w1 == 'machine' and w2:
                                                  host = w2.lower()
                                                  i = i + 1
                              Severity: Major
                              Found in AppPkg/Applications/Python/Python-2.7.2/Lib/ftplib.py - About 40 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                    if type(object) is _OLD_INSTANCE_TYPE:
                                        # If the passed object is an instance of an old-style class,
                                        # document its available methods instead of its value.
                                        object = object.__class__
                                    elif not (inspect.ismodule(object) or
                                Severity: Major
                                Found in vector-uefi/fd/efi/StdLib/lib/python.27/pydoc.py - About 40 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                              if tokentype == DEDENT:
                                                  lineno, thisindent = start
                                                  # close nested classes and defs
                                                  while stack and stack[-1][1] >= thisindent:
                                                      del stack[-1]
                                  Severity: Major
                                  Found in vector-uefi/fd/efi/StdLib/lib/python.27/pyclbr.py - About 40 mins to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                        if ((year >= EPOCH_YEAR) and (1 <= month <= 12) and (1 <= mday <= 31) and
                                            (0 <= hour <= 24) and (0 <= min <= 59) and (0 <= sec <= 61)):
                                            return timegm(tt)
                                        else:
                                            return None
                                    Severity: Major
                                    Found in vector-uefi/fd/efi/StdLib/lib/python.27/cookielib.py - About 40 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                  if c == '_' and header:
                                                      new = new + ' '; i = i+1
                                                  elif c != ESCAPE:
                                                      new = new + c; i = i+1
                                                  elif i+1 == n and not partial:
                                      Severity: Major
                                      Found in vector-uefi/fd/efi/StdLib/lib/python.27/quopri.py - About 40 mins to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                    if not (isinstance(defn, tuple) and
                                                            (len (defn) == 1 or
                                                             (len (defn) == 2 and
                                                              (isinstance(defn[1], str) or defn[1] is None))) and
                                                            isinstance(defn[0], str)):
                                        Severity: Major
                                        Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/ccompiler.py - About 40 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language