Showing 9,525 of 13,510 total issues
Function __init__
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(self):
InfDefinSectionParser.__init__(self)
InfBuildOptionSectionParser.__init__(self)
InfSourceSectionParser.__init__(self)
InfLibrarySectionParser.__init__(self)
Function commit
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
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)
Function FromXml
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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)
Function GetBuildRules
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def GetBuildRules(Inf, Arch):
if not Arch:
Arch = 'COMMON'
if not Arch in GenFdsGlobalVariable.OutputDirDict:
Method Backward
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
UInt32 Backward(out UInt32 backRes, UInt32 cur)
{
_optimumEndIndex = cur;
UInt32 posMem = _optimum[cur].PosPrev;
UInt32 backMem = _optimum[cur].BackPrev;
Method Create
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void Create(UInt32 historySize, UInt32 keepAddBufferBefore,
UInt32 matchMaxLen, UInt32 keepAddBufferAfter)
{
if (historySize > kMaxValForNormalize - 256)
throw new Exception();
Method Init
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
void Init()
{
BaseInit();
_rangeEncoder.Init();
Method Create
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public boolean Create(int historySize, int keepAddBufferBefore,
int matchMaxLen, int keepAddBufferAfter)
{
if (historySize > kMaxValForNormalize - 256)
return false;
Function PackageToDec
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def PackageToDec(Package):
#
# Init global information for the file
#
ContainerFile = Package.GetFullPath()
Function GenDefines
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def GenDefines(ModuleObject):
#
# generate [Defines] section
#
Content = ''
Function __init__
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(self):
self.AutoGenVersion = 0
self.MetaFile = ''
self.BaseName = ''
self.ModuleType = ''
Function __InfParse__
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __InfParse__(self, Dict = {}):
GenFdsGlobalVariable.VerboseLogger( " Begine parsing INf file : %s" %self.InfFileName)
self.InfFileName = self.InfFileName.replace('$(WORKSPACE)', '')
Function _CollectModuleMapBuffer
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def _CollectModuleMapBuffer (self, MapBuffer, ModuleList):
sys.stdout.write ("Generate Load Module At Fix Address Map")
sys.stdout.flush()
PatchEfiImageList = []
PeiModuleList = {}
Function __init__
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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?
Function main
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def main(fixer_pkg, args=None):
"""Main program.
Args:
fixer_pkg: the name of a package where the fixers are located.
Function __init__
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Function main
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def main(fixer_pkg, args=None):
"""Main program.
Args:
fixer_pkg: the name of a package where the fixers are located.
Function __init__
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, Name = None, Guid = None, Type = None, DatumType = None, Value = None, Token = None, MaxDatumSize = None, SkuInfoList = {}, IsOverrided = False):
Function InstallModuleContent
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def InstallModuleContent(FromPath, NewPath, ModulePath, Module, ContentZipFile,