hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

Function __init__ has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def __init__(self):
        InfDefinSectionParser.__init__(self)
        InfBuildOptionSectionParser.__init__(self)
        InfSourceSectionParser.__init__(self)
        InfLibrarySectionParser.__init__(self)
Severity: Minor
Found in BaseTools/Source/Python/UPT/Parser/InfSectionParser.py - About 1 hr to fix

    Function commit has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def commit(self, entry):
            file = entry.file
            # Normalize line endings in body
            if '\r' in self.ui.body:
                self.ui.body = re.sub('\r\n?', '\n', self.ui.body)
    Severity: Minor
    Found in AppPkg/Applications/Python/Python-2.7.2/Tools/faqwiz/faqwiz.py - About 1 hr to fix

      Function FromXml has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def FromXml(self, Item, Key):
              self.UserId = XmlAttribute(XmlNode(Item, '%s' % Key), 'UserId')
              self.Identifier = XmlAttribute(XmlNode(Item, '%s' % Key), 'Identifier')
      
              DefineItem = XmlNode(Item, '%s/Define' % Key)
      Severity: Minor
      Found in BaseTools/Source/Python/UPT/Xml/CommonXml.py - About 1 hr to fix

        Function GetBuildRules has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            def GetBuildRules(Inf, Arch):
                if not Arch:
                    Arch = 'COMMON'
        
                if not Arch in GenFdsGlobalVariable.OutputDirDict:
        Severity: Minor
        Found in BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py - About 1 hr to fix

          Method Backward has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  UInt32 Backward(out UInt32 backRes, UInt32 cur)
                  {
                      _optimumEndIndex = cur;
                      UInt32 posMem = _optimum[cur].PosPrev;
                      UInt32 backMem = _optimum[cur].BackPrev;
          Severity: Minor
          Found in vector-uefi/insyde/7zip/CS/7zip/Compress/LZMA/LzmaEncoder.cs - About 1 hr to fix

            Method Create has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public void Create(UInt32 historySize, UInt32 keepAddBufferBefore,
                            UInt32 matchMaxLen, UInt32 keepAddBufferAfter)
                    {
                        if (historySize > kMaxValForNormalize - 256)
                            throw new Exception();
            Severity: Minor
            Found in vector-uefi/insyde/7zip/CS/7zip/Compress/LZ/LzBinTree.cs - About 1 hr to fix

              Method Init has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      void Init()
                      {
                          BaseInit();
                          _rangeEncoder.Init();
              
              Severity: Minor
              Found in vector-uefi/insyde/7zip/CS/7zip/Compress/LZMA/LzmaEncoder.cs - About 1 hr to fix

                Method Create has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public boolean Create(int historySize, int keepAddBufferBefore,
                            int matchMaxLen, int keepAddBufferAfter)
                    {
                        if (historySize > kMaxValForNormalize - 256)
                            return false;
                Severity: Minor
                Found in vector-uefi/insyde/7zip/Java/SevenZip/Compression/LZ/BinTree.java - About 1 hr to fix

                  Function PackageToDec has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  def PackageToDec(Package):
                      #
                      # Init global information for the file
                      #
                      ContainerFile = Package.GetFullPath()
                  Severity: Minor
                  Found in BaseTools/Source/Python/UPT/GenMetaFile/GenDecFile.py - About 1 hr to fix

                    Function GenDefines has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    def GenDefines(ModuleObject):
                        #
                        # generate [Defines] section
                        #
                        Content = ''          
                    Severity: Minor
                    Found in BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py - About 1 hr to fix

                      Function __init__ has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          def __init__(self):
                              self.AutoGenVersion          = 0
                              self.MetaFile                = ''
                              self.BaseName                = ''
                              self.ModuleType              = ''
                      Severity: Minor
                      Found in BaseTools/Source/Python/Workspace/BuildClassObject.py - About 1 hr to fix

                        Function __InfParse__ has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            def __InfParse__(self, Dict = {}):
                        
                                GenFdsGlobalVariable.VerboseLogger( " Begine parsing INf file : %s" %self.InfFileName)
                        
                                self.InfFileName = self.InfFileName.replace('$(WORKSPACE)', '')
                        Severity: Minor
                        Found in BaseTools/Source/Python/GenFds/FfsInfStatement.py - About 1 hr to fix

                          Function _CollectModuleMapBuffer has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              def _CollectModuleMapBuffer (self, MapBuffer, ModuleList):
                                  sys.stdout.write ("Generate Load Module At Fix Address Map")
                                  sys.stdout.flush()
                                  PatchEfiImageList = []
                                  PeiModuleList  = {}
                          Severity: Minor
                          Found in BaseTools/Source/Python/build/build.py - About 1 hr to fix

                            Function __init__ has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                def __init__(self):
                                    self.unknown = {}       # statistics about unknown @-commands
                                    self.filenames = {}     # Check for identical filenames
                                    self.debugging = 0      # larger values produce more output
                                    self.print_headers = 0  # always print headers?
                            Severity: Minor
                            Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 1 hr to fix

                              Function main has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              def main(fixer_pkg, args=None):
                                  """Main program.
                              
                                  Args:
                                      fixer_pkg: the name of a package where the fixers are located.
                              Severity: Minor
                              Found in AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/main.py - About 1 hr to fix

                                Function __init__ has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    def __init__ (self, attrs=None):
                                        """Construct a new Distribution instance: initialize all the
                                        attributes of a Distribution, and then use 'attrs' (a dictionary
                                        mapping attribute names to values) to assign some of those
                                        attributes their "real" values.  (Any attributes not mentioned in
                                Severity: Minor
                                Found in AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/dist.py - About 1 hr to fix

                                  Function main has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  def main(fixer_pkg, args=None):
                                      """Main program.
                                  
                                      Args:
                                          fixer_pkg: the name of a package where the fixers are located.
                                  Severity: Minor
                                  Found in vector-uefi/fd/efi/StdLib/lib/python.27/lib2to3/main.py - About 1 hr to fix

                                    Function __init__ has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        def __init__ (self, attrs=None):
                                            """Construct a new Distribution instance: initialize all the
                                            attributes of a Distribution, and then use 'attrs' (a dictionary
                                            mapping attribute names to values) to assign some of those
                                            attributes their "real" values.  (Any attributes not mentioned in
                                    Severity: Minor
                                    Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/dist.py - About 1 hr to fix

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

                                          def __init__(self, Name = None, Guid = None, Type = None, DatumType = None, Value = None, Token = None, MaxDatumSize = None, SkuInfoList = {}, IsOverrided = False):
                                      Severity: Major
                                      Found in BaseTools/Source/Python/Common/EdkIIWorkspaceBuild.py - About 1 hr to fix

                                        Function InstallModuleContent has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        def InstallModuleContent(FromPath, NewPath, ModulePath, Module, ContentZipFile,
                                        Severity: Major
                                        Found in BaseTools/Source/Python/UPT/InstallPkg.py - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language