hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

Function visitWith has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def visitWith(self, node):
        body = self.newBlock()
        final = self.newBlock()
        self.__with_count += 1
        valuevar = "_[%d]" % self.__with_count
Severity: Minor
Found in AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/pycodegen.py - About 1 hr to fix

    Function finalize_package_data has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def finalize_package_data (self):
            self.ensure_string('group', "Development/Libraries")
            self.ensure_string('vendor',
                               "%s <%s>" % (self.distribution.get_contact(),
                                            self.distribution.get_contact_email()))

      Function visitWith has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def visitWith(self, node):
              body = self.newBlock()
              final = self.newBlock()
              self.__with_count += 1
              valuevar = "_[%d]" % self.__with_count
      Severity: Minor
      Found in vector-uefi/fd/efi/StdLib/lib/python.27/compiler/pycodegen.py - About 1 hr to fix

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

                void Init(System.IO.Stream inStream, System.IO.Stream outStream)
                {
                    m_RangeDecoder.Init(inStream);
                    m_OutWindow.Init(outStream, _solid);
        
        Severity: Minor
        Found in vector-uefi/insyde/7zip/CS/7zip/Compress/LZMA/LzmaDecoder.cs - About 1 hr to fix

          Method Decode has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  public uint Decode(RangeCoder.Decoder rangeDecoder)
                  {
                      uint newBound = (uint)(rangeDecoder.Range >> kNumBitModelTotalBits) * (uint)Prob;
                      if (rangeDecoder.Code < newBound)
                      {

            Function ParseDefine has 8 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def ParseDefine(self, LineValue, StartLine, Table, FileID, Filename, SectionName, Model, Arch):
            Severity: Major
            Found in BaseTools/Source/Python/Common/DscClassObject.py - About 1 hr to fix

              Function GenSkuInfoList has 8 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def GenSkuInfoList(self, SkuNameList, SkuInfo, VariableName='', VariableGuid='', VariableOffset='', HiiDefaultValue='', VpdOffset='', DefaultValue=''):
              Severity: Major
              Found in BaseTools/Source/Python/Common/DscClassObject.py - About 1 hr to fix

                Function ParseDefinesSection has 8 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def ParseDefinesSection(self, LineValue, StartLine, Table, FileID, Filename, SectionName, Model, Arch):
                Severity: Major
                Found in BaseTools/Source/Python/Common/DscClassObject.py - About 1 hr to fix

                  Function ParseInclude has 8 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def ParseInclude(self, LineValue, StartLine, Table, FileID, Filename, SectionName, Model, Arch):
                  Severity: Major
                  Found in BaseTools/Source/Python/Common/DscClassObject.py - About 1 hr to fix

                    Function ValidFile2 has 8 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    def ValidFile2(AllFiles, File, Ext=None, Workspace='', EfiSource='', EdkSource='', Dir='.', OverrideDir=''):
                    Severity: Major
                    Found in BaseTools/Source/Python/Common/Misc.py - About 1 hr to fix

                      Function ParseDefine has 8 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      def ParseDefine(LineValue, StartLine, Table, FileID, Filename, SectionName, SectionModel, Arch):
                      Severity: Major
                      Found in BaseTools/Source/Python/Common/Parsing.py - About 1 hr to fix

                        Function InstallPackageContent has 8 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def InstallPackageContent(FromPath, ToPath, Package, ContentZipFile, Dep,
                        Severity: Major
                        Found in BaseTools/Source/Python/UPT/InstallPkg.py - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                                  if not ((Value.startswith('L"') or Value.startswith('"') and \
                                           Value.endswith('"'))
                                          or (IsValidCArray(Value)) or (IsValidCFormatGuid(Value)) \
                                          or (IsValidNList(Value)) or (CheckGuidRegFormat(Value))
                                         ):
                          Severity: Major
                          Found in BaseTools/Source/Python/UPT/Parser/DecParserMisc.py - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                                    if Key == TAB_TAT_DEFINES_ACTIVE_PLATFORM or Key == TAB_TAT_DEFINES_TOOL_CHAIN_CONF \
                                                      or Key == TAB_TAT_DEFINES_MAX_CONCURRENT_THREAD_NUMBER \
                                                      or Key == TAB_TAT_DEFINES_ACTIVE_MODULE:
                                                        self.TargetTxtDictionary[Key] = LineList[1].replace('\\', '/').strip()
                                                    elif Key == TAB_TAT_DEFINES_TARGET or Key == TAB_TAT_DEFINES_TARGET_ARCH \
                            Severity: Major
                            Found in BaseTools/Source/Python/TargetTool/TargetTool.py - About 1 hr to fix

                              Consider simplifying this complex logical expression.
                              Open

                                          if not (self.__GetBlockStatement(FvObj) or self.__GetFvBaseAddress(FvObj) or 
                                              self.__GetFvForceRebase(FvObj) or self.__GetFvAlignment(FvObj) or 
                                              self.__GetFvAttributes(FvObj) or self.__GetFvNameGuid(FvObj) or 
                                              self.__GetFvExtEntryStatement(FvObj)):
                                              break
                              Severity: Major
                              Found in BaseTools/Source/Python/GenFds/FdfParser.py - About 1 hr to fix

                                Consider simplifying this complex logical expression.
                                Open

                                            if ToPcd.Pending and FromPcd.Type not in [None, '']:
                                                ToPcd.Type = FromPcd.Type
                                            elif (ToPcd.Type not in [None, '']) and (FromPcd.Type not in [None, ''])\
                                                and (ToPcd.Type != FromPcd.Type) and (ToPcd.Type in FromPcd.Type):
                                                if ToPcd.Type.strip() == "DynamicEx":
                                Severity: Major
                                Found in BaseTools/Source/Python/AutoGen/AutoGen.py - About 1 hr to fix

                                  Function CheckFunctionHeaderConsistentWithDoxygenComment has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def CheckFunctionHeaderConsistentWithDoxygenComment(FuncModifier, FuncHeader, FuncStartLine, CommentStr, CommentStartLine, ErrorMsgList, CommentId= -1, TableName=''):
                                  Severity: Major
                                  Found in BaseTools/Source/Python/Ecc/c.py - About 1 hr to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                            if ListFromStr[Index] == '\n':
                                                if InComment and DoubleSlashComment:
                                                    InComment = False
                                                    DoubleSlashComment = False
                                                Index += 1
                                    Severity: Major
                                    Found in BaseTools/Source/Python/Ecc/c.py - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                              if EccGlobalData.gConfig.NamingConventionCheckDefineStatement == '1' \
                                              or EccGlobalData.gConfig.NamingConventionCheckTypedefStatement == '1' \
                                              or EccGlobalData.gConfig.NamingConventionCheckIfndefStatement == '1' \
                                              or EccGlobalData.gConfig.NamingConventionCheckVariableName == '1' \
                                              or EccGlobalData.gConfig.NamingConventionCheckSingleCharacterVariable == '1' \
                                      Severity: Major
                                      Found in BaseTools/Source/Python/Ecc/Check.py - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                                if (LA15_2 == 43) :
                                                                    alt15 = 1
                                                                elif (LA15_2 == EOF or LA15_2 == IDENTIFIER or LA15_2 == 25 or LA15_2 == 27 or (29 <= LA15_2 <= 42) or (45 <= LA15_2 <= 64) or LA15_2 == 66) :
                                                                    alt15 = 2
                                                                else:
                                        Severity: Major
                                        Found in BaseTools/Source/Python/Ecc/CParser.py - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language