Showing 9,525 of 13,510 total issues
Function visitWith
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def visitWith(self, node):
body = self.newBlock()
final = self.newBlock()
self.__with_count += 1
valuevar = "_[%d]" % self.__with_count
Function finalize_package_data
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
def visitWith(self, node):
body = self.newBlock()
final = self.newBlock()
self.__with_count += 1
valuevar = "_[%d]" % self.__with_count
Method Init
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
void Init(System.IO.Stream inStream, System.IO.Stream outStream)
{
m_RangeDecoder.Init(inStream);
m_OutWindow.Init(outStream, _solid);
Method Decode
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
def ParseDefine(self, LineValue, StartLine, Table, FileID, Filename, SectionName, Model, Arch):
Function GenSkuInfoList
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def GenSkuInfoList(self, SkuNameList, SkuInfo, VariableName='', VariableGuid='', VariableOffset='', HiiDefaultValue='', VpdOffset='', DefaultValue=''):
Function ParseDefinesSection
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def ParseDefinesSection(self, LineValue, StartLine, Table, FileID, Filename, SectionName, Model, Arch):
Function ParseInclude
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def ParseInclude(self, LineValue, StartLine, Table, FileID, Filename, SectionName, Model, Arch):
Function ValidFile2
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def ValidFile2(AllFiles, File, Ext=None, Workspace='', EfiSource='', EdkSource='', Dir='.', OverrideDir=''):
Function ParseDefine
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def ParseDefine(LineValue, StartLine, Table, FileID, Filename, SectionName, SectionModel, Arch):
Function InstallPackageContent
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def InstallPackageContent(FromPath, ToPath, Package, ContentZipFile, Dep,
Consider simplifying this complex logical expression. Open
Open
if not ((Value.startswith('L"') or Value.startswith('"') and \
Value.endswith('"'))
or (IsValidCArray(Value)) or (IsValidCFormatGuid(Value)) \
or (IsValidNList(Value)) or (CheckGuidRegFormat(Value))
):
Consider simplifying this complex logical expression. Open
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 \
Consider simplifying this complex logical expression. Open
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
Consider simplifying this complex logical expression. Open
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":
Function CheckFunctionHeaderConsistentWithDoxygenComment
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def CheckFunctionHeaderConsistentWithDoxygenComment(FuncModifier, FuncHeader, FuncStartLine, CommentStr, CommentStartLine, ErrorMsgList, CommentId= -1, TableName=''):
Consider simplifying this complex logical expression. Open
Open
if ListFromStr[Index] == '\n':
if InComment and DoubleSlashComment:
InComment = False
DoubleSlashComment = False
Index += 1
Consider simplifying this complex logical expression. Open
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' \
Consider simplifying this complex logical expression. Open
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: