hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

Avoid deeply nested control flow statements.
Open

                        if DscDefaultValue == None:
                            DscMatch = True
                        else:
                            DscMatch = (DscDefaultValue.strip() == PcdValue.strip())
Severity: Major
Found in BaseTools/Source/Python/build/BuildReport.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            if InfFoundFlag:
                                break
                            for Module in Pa.ModuleAutoGenList:
    Severity: Major
    Found in BaseTools/Source/Python/AutoGen/AutoGen.py - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              if InfDefaultValue == None:
                                  InfMatch = True
                              else:
                                  InfDefaultValueNumber = int(InfDefaultValue.strip(), 0)
                                  InfMatch = (InfDefaultValueNumber == PcdValueNumber)
      Severity: Major
      Found in BaseTools/Source/Python/build/BuildReport.py - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if DecDefaultValue == None:
                                    DecMatch = True
                                else:
                                    DecMatch = (DecDefaultValue.strip() == PcdValue.strip())
        
        Severity: Major
        Found in BaseTools/Source/Python/build/BuildReport.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  for Ma in Pa.ModuleAutoGenList:
                                      if Ma == None:
                                          continue
                                      if not Ma.IsLibrary:
                                          ModuleList[Ma.Guid.upper()] = Ma
          Severity: Major
          Found in BaseTools/Source/Python/build/build.py - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if (Arch == 'IA32' or Arch == 'ARM') and self.LoadFixAddress != 0xFFFFFFFFFFFFFFFF and self.LoadFixAddress >= 0x100000000:
                                        EdkLogger.error("build", PARAMETER_INVALID, "FIX_LOAD_TOP_MEMORY_ADDRESS can't be set to larger than or equal to 4G for the platorm with IA32 or ARM arch modules")
                                #
                                # Get Module List
                                #
            Severity: Major
            Found in BaseTools/Source/Python/build/build.py - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      if self.Target not in ['clean', 'cleanlib', 'cleanall', 'run', 'fds']:
                                          # for target which must generate AutoGen code and makefile
                                          if not self.SkipAutoGen or self.Target == 'genc':
                                              Ma.CreateCodeFile(True)
                                          if self.Target == "genc":
              Severity: Major
              Found in BaseTools/Source/Python/build/build.py - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        if not BuildTask.IsOnGoing():
                                            BuildTask.StartScheduler(self.ThreadNumber, ExitFlag)
                
                                    # in case there's an interruption. we need a full version of makefile for platform
                                    Pa.CreateMakeFile(False)
                Severity: Major
                Found in BaseTools/Source/Python/build/build.py - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          if TemporaryTablePattern.match(Wa.BuildDatabase._CACHE_[Key]._RawData._Table.Table):
                                              TmpTableDict[Wa.BuildDatabase._CACHE_[Key]._RawData._Table.Table] = Wa.BuildDatabase._CACHE_[Key]._RawData._Table.Cur
                                  #
                                  #
                                  # All modules have been put in build tasks queue. Tell task scheduler
                  Severity: Major
                  Found in BaseTools/Source/Python/build/build.py - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if DscDefaultValue == None:
                                                DscMatch = True
                                            else:
                                                DscDefaultValueNumber = int(DscDefaultValue.strip(), 0)
                                                DscMatch = (DscDefaultValueNumber == PcdValueNumber)
                    Severity: Major
                    Found in BaseTools/Source/Python/build/BuildReport.py - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if GuidString.upper() in ModuleList:
                                                  MapBuffer.write('(IMAGE=%s)\n' % (os.path.join(ModuleList[GuidString.upper()].DebugDir, ModuleList[GuidString.upper()].Name + '.efi')))
                      
                      Severity: Major
                      Found in BaseTools/Source/Python/build/build.py - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if Module.ModuleType == 'DXE_SMM_DRIVER':
                                                    PiSpecVersion = '0x00000000'
                                                    if 'PI_SPECIFICATION_VERSION' in Module.Module.Specification:
                                                        PiSpecVersion = Module.Module.Specification['PI_SPECIFICATION_VERSION']
                                                    # for PI specification < PI1.1, DXE_SMM_DRIVER also runs as BOOT time driver.
                        Severity: Major
                        Found in BaseTools/Source/Python/build/build.py - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  if BuildTask.HasError():
                                                      # we need a full version of makefile for platform
                                                      ExitFlag.set()
                                                      BuildTask.WaitForComplete()
                                                      Pa.CreateMakeFile(False)
                          Severity: Major
                          Found in BaseTools/Source/Python/build/build.py - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if (Index == len(FileIn) -1):
                                                        FileIn[Index] = os.linesep
                                                    else:
                                                        FileIn[Index] = FileIn[Index + 1]
                                                continue
                            Severity: Major
                            Found in BaseTools/Source/Python/AutoGen/UniClassObject.py - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if Ma == None:
                                                          continue
                                                      # Not to auto-gen for targets 'clean', 'cleanlib', 'cleanall', 'run', 'fds'
                                                      if self.Target not in ['clean', 'cleanlib', 'cleanall', 'run', 'fds']:
                              Severity: Major
                              Found in BaseTools/Source/Python/build/build.py - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        for Ma in Pa.ModuleAutoGenList:
                                                            if Ma == None:
                                                                continue
                                                            if not Ma.IsLibrary:
                                                                ModuleList[Ma.Guid.upper()] = Ma
                                Severity: Major
                                Found in BaseTools/Source/Python/build/build.py - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if UseOtherLangDef != '':
                                                              OtherLangDef = UseOtherLangDef
                                                          else:
                                                              OtherLangDef = Language
                                                          self.OrderedStringList[LangName[0]].append(StringDefClassObject(Name, '', Referenced, Token, OtherLangDef))
                                  Severity: Major
                                  Found in BaseTools/Source/Python/AutoGen/UniClassObject.py - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            if EntryPoint == "_ModuleEntryPoint":
                                                                CCFlags = Module.BuildOption.get("CC", {}).get("FLAGS", "")
                                                                Match = gGlueLibEntryPoint.search(CCFlags)
                                                                if Match:
                                                                    EntryPoint = Match.group(1)
                                    Severity: Major
                                    Found in BaseTools/Source/Python/build/BuildReport.py - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if IsIpfPlatform and ImageInfo.Image.Size % 0x2000 != 0:
                                                                  ImageInfo.Image.Size = (ImageInfo.Image.Size / 0x2000 + 1) * 0x2000
                                                              RtSize += ImageInfo.Image.Size
                                      Severity: Major
                                      Found in BaseTools/Source/Python/build/build.py - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                for Ma in Pa.ModuleAutoGenList:
                                                                    if Ma == None:
                                                                        continue
                                                                    if not Ma.IsLibrary:
                                                                        ModuleList[Ma.Guid.upper()] = Ma
                                        Severity: Major
                                        Found in BaseTools/Source/Python/build/build.py - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language