hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

Function make_list_box has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

def make_list_box(parent, width=0, height=0, hbar=0, vbar=1,
Severity: Major
Found in AppPkg/Applications/Python/Python-2.7.2/Tools/webchecker/tktools.py - About 1 hr to fix

    Function control has 11 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def control(self, name, type, x, y, w, h, attr, prop, text, next, help):
    Severity: Major
    Found in AppPkg/Applications/Python/Python-2.7.2/Tools/msi/msilib.py - About 1 hr to fix

      Function make_canvas has 11 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def make_canvas(parent, width=0, height=0, hbar=1, vbar=1,
      Severity: Major
      Found in AppPkg/Applications/Python/Python-2.7.2/Tools/webchecker/tktools.py - About 1 hr to fix

        Function dumps has 11 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True,
        Severity: Major
        Found in AppPkg/Applications/Python/Python-2.7.2/Lib/json/__init__.py - About 1 hr to fix

          Function dumps has 11 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True,
          Severity: Major
          Found in vector-uefi/fd/efi/StdLib/lib/python.27/json/__init__.py - About 1 hr to fix

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

                def FromXml(self, Item, Key):
                    self.PcdItemType = \
                    XmlAttribute(XmlNode(Item, '%s' % Key), 'PcdItemType')
                    self.PcdUsage = XmlAttribute(XmlNode(Item, '%s' % Key), 'PcdUsage')
                    self.TokenSpaceGuidCName = \
            Severity: Minor
            Found in BaseTools/Source/Python/UPT/Xml/PcdXml.py - About 1 hr to fix

              Function ParseInfFile has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  def ParseInfFile(self, Filename):
                      
                      Filename = NormPath(Filename)
                      (Path, Name) = os.path.split(Filename)
                      self.FullPath = Filename
              Severity: Minor
              Found in BaseTools/Source/Python/UPT/Parser/InfParser.py - About 1 hr to fix

                Function AddToBuffer has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    def AddToBuffer (self, Buffer, BaseAddress=None, BlockSize= None, BlockNum=None, ErasePloarity='1', VtfDict=None, MacroDict = {}) :
                
                        if BaseAddress == None and self.UiFvName.upper() + 'fv' in GenFds.ImageBinDict.keys():
                            return GenFds.ImageBinDict[self.UiFvName.upper() + 'fv']
                        
                Severity: Minor
                Found in BaseTools/Source/Python/GenFds/Fv.py - About 1 hr to fix

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

                      def __init__(self, Target, WorkspaceDir, BuildOptions):
                          self.WorkspaceDir   = WorkspaceDir
                          self.Target         = Target
                          self.PlatformFile   = BuildOptions.PlatformFile
                          self.ModuleFile     = BuildOptions.ModuleFile
                  Severity: Minor
                  Found in BaseTools/Source/Python/build/build.py - About 1 hr to fix

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

                        def __init__(self):
                            self.Header = {}
                            self.ModuleHeader = ModuleHeaderClass()
                            self.LibraryClasses = []
                            self.Libraries = []
                    Severity: Minor
                    Found in BaseTools/Source/Python/CommonDataClass/ModuleClass.py - About 1 hr to fix

                      Function test has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      def test():
                          import sys
                          if sys.argv[1:]:
                              file = sys.argv[1]
                          else:
                      Severity: Minor
                      Found in AppPkg/Applications/Python/Python-2.7.2/Lib/StringIO.py - About 1 hr to fix

                        Function test has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        def test():
                            import sys
                            if sys.argv[1:]:
                                file = sys.argv[1]
                            else:
                        Severity: Minor
                        Found in vector-uefi/fd/efi/StdLib/lib/python.27/StringIO.py - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                                          if (TempChar >= 'a' and TempChar <= 'z') or (TempChar >= 'A' and TempChar <= 'Z') \
                                          or (TempChar >= '0' and TempChar <= '9') or TempChar == '_' or TempChar == '-':
                                              self.__GetOneChar()
                                              
                                          else:
                          Severity: Critical
                          Found in BaseTools/Source/Python/Common/FdfParserLite.py - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                if Key == TAB_TAT_DEFINES_ACTIVE_PLATFORM and self.Opt.DSCFILE != None:
                                    dscFullPath = os.path.join(self.WorkSpace, self.Opt.DSCFILE)
                                    if os.path.exists(dscFullPath):
                                        Line = "%-30s = %s\n" % (Key, self.Opt.DSCFILE)
                                    else:
                            Severity: Critical
                            Found in BaseTools/Source/Python/TargetTool/TargetTool.py - About 1 hr to fix

                              Consider simplifying this complex logical expression.
                              Open

                                              if (TempChar >= 'a' and TempChar <= 'z') or (TempChar >= 'A' and TempChar <= 'Z') \
                                              or (TempChar >= '0' and TempChar <= '9') or TempChar == '_' or TempChar == '-':
                                                  self.__GetOneChar()
                              
                                              else:
                              Severity: Critical
                              Found in BaseTools/Source/Python/GenFds/FdfParser.py - About 1 hr to fix

                                Consider simplifying this complex logical expression.
                                Open

                                                if (LA28_1 == u'"' or LA28_1 == u'\'' or LA28_1 == u'\\' or LA28_1 == u'b' or LA28_1 == u'f' or LA28_1 == u'n' or LA28_1 == u'r' or LA28_1 == u't') :
                                                    alt28 = 1
                                                elif ((u'0' <= LA28_1 <= u'7')) :
                                                    alt28 = 2
                                                else:
                                Severity: Critical
                                Found in BaseTools/Source/Python/Ecc/CLexer.py - About 1 hr to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                  if self.input.LA(1) == u'"' or self.input.LA(1) == u'\'' or self.input.LA(1) == u'\\' or self.input.LA(1) == u'b' or self.input.LA(1) == u'f' or self.input.LA(1) == u'n' or self.input.LA(1) == u'r' or self.input.LA(1) == u't':
                                                      self.input.consume();
                                  
                                                  else:
                                                      mse = MismatchedSetException(None, self.input)
                                  Severity: Critical
                                  Found in BaseTools/Source/Python/Ecc/CLexer.py - About 1 hr to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                    if self.input.LA(1) == u'"' or self.input.LA(1) == u'\'' or self.input.LA(1) == u'\\' or self.input.LA(1) == u'b' or self.input.LA(1) == u'f' or self.input.LA(1) == u'n' or self.input.LA(1) == u'r' or self.input.LA(1) == u't':
                                                        self.input.consume();
                                    
                                                    else:
                                                        mse = MismatchedSetException(None, self.input)
                                    Severity: Critical
                                    Found in BaseTools/Source/Python/Eot/CLexer.py - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                      if (LA28_1 == u'"' or LA28_1 == u'\'' or LA28_1 == u'\\' or LA28_1 == u'b' or LA28_1 == u'f' or LA28_1 == u'n' or LA28_1 == u'r' or LA28_1 == u't') :
                                                          alt28 = 1
                                                      elif ((u'0' <= LA28_1 <= u'7')) :
                                                          alt28 = 2
                                                      else:
                                      Severity: Critical
                                      Found in BaseTools/Source/Python/Eot/CLexer.py - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                if ((issubclass(typ, list) and r is list.__repr__) or
                                                    (issubclass(typ, tuple) and r is tuple.__repr__) or
                                                    (issubclass(typ, set) and r is set.__repr__) or
                                                    (issubclass(typ, frozenset) and r is frozenset.__repr__)
                                                   ):
                                        Severity: Critical
                                        Found in AppPkg/Applications/Python/Python-2.7.2/Lib/pprint.py - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language