hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

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 vector-uefi/fd/efi/StdLib/lib/python.27/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 vector-uefi/fd/efi/StdLib/lib/python.27/distutils/command/install.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 vector-uefi/fd/efi/StdLib/lib/python.27/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 vector-uefi/fd/efi/StdLib/lib/python.27/ftplib.py - About 40 mins to fix

          Method PrintResults has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                      int dictionarySize,
                      long elapsedTime,
                      long size,
                      boolean decompressMode, long secondSize)
          Severity: Minor
          Found in vector-uefi/insyde/7zip/Java/SevenZip/LzmaBench.java - About 35 mins to fix

            Method ReverseEncode has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                public static void ReverseEncode(short[] Models, int startIndex,
                        Encoder rangeEncoder, int NumBitLevels, int symbol) throws IOException

              Method Code has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  public void Code(java.io.InputStream inStream, java.io.OutputStream outStream,
                          long inSize, long outSize, ICodeProgress progress) throws IOException
              Severity: Minor
              Found in vector-uefi/insyde/7zip/Java/SevenZip/Compression/LZMA/Encoder.java - About 35 mins to fix

                Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def __init__(self, Filename=None, IsToDatabase=False, IsToPlatform=False, WorkspaceDir=None, Database=None):
                Severity: Minor
                Found in BaseTools/Source/Python/Common/DscClassObject.py - About 35 mins to fix

                  Function PatchBinaryFile has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def PatchBinaryFile(FileName, ValueOffset, TypeName, ValueString, MaxSize=0):
                  Severity: Minor
                  Found in BaseTools/Source/Python/PatchPcdValue/PatchPcdValue.py - About 35 mins to fix

                    Function RaiseParserError has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    def RaiseParserError(Line, Section, File, Format='', LineNo= -1):
                    Severity: Minor
                    Found in BaseTools/Source/Python/Common/String.py - About 35 mins to fix

                      Function FindPcd has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def FindPcd(self, Arch, ModuleName, Name, Guid, Type):
                      Severity: Minor
                      Found in BaseTools/Source/Python/Common/EdkIIWorkspaceBuild.py - About 35 mins to fix

                        Function warn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def warn(ToolName, Message, File=None, Line=None, ExtraData=None):
                        Severity: Minor
                        Found in BaseTools/Source/Python/Common/EdkLogger.py - About 35 mins to fix

                          Function ValidateCopyright has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          def ValidateCopyright(Result, ErrType, FileName, LineNo, ErrMsg):
                          Severity: Minor
                          Found in BaseTools/Source/Python/UPT/Library/CommentParsing.py - About 35 mins to fix

                            Function ToXml has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def ToXml(self, Header, BootModes, Events, Hobs, Key):
                            Severity: Minor
                            Found in BaseTools/Source/Python/UPT/Xml/ModuleSurfaceAreaXml.py - About 35 mins to fix

                              Function _AddDp has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def _AddDp(self, Guid, Version, NewDpFileName, DistributionFileName, \
                              Severity: Minor
                              Found in BaseTools/Source/Python/UPT/Core/IpiDb.py - About 35 mins to fix

                                Function Warn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                def Warn(ToolName, Message, File=None, Line=None, ExtraData=None):
                                Severity: Minor
                                Found in BaseTools/Source/Python/UPT/Logger/Log.py - About 35 mins to fix

                                  Function ParseComment has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def ParseComment (Comment, UsageTokens, TypeTokens, RemoveTokens, ParseVariable):
                                  Severity: Minor
                                  Found in BaseTools/Source/Python/UPT/Library/CommentParsing.py - About 35 mins to fix

                                    Function RaiseParserError has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    def RaiseParserError(Line, Section, File, Format='', LineNo=-1):
                                    Severity: Minor
                                    Found in BaseTools/Source/Python/UPT/Library/String.py - About 35 mins to fix

                                      Function _AddPackage has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def _AddPackage(self, Guid, Version, DpGuid=None, DpVersion=None, Path=''):
                                      Severity: Minor
                                      Found in BaseTools/Source/Python/UPT/Core/IpiDb.py - About 35 mins to fix

                                        Function CheckModuleExists has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            def CheckModuleExists(self, Guid, Version, Name, Path, ReturnCode=DEPEX_CHECK_SUCCESS):
                                        Severity: Minor
                                        Found in BaseTools/Source/Python/UPT/Core/DependencyRules.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language