Showing 9,525 of 13,510 total issues
Consider simplifying this complex logical expression. Open
if LA74 == 64:
LA74_44 = self.input.LA(3)
if (self.synpred142()) :
alt74 = 1
Consider simplifying this complex logical expression. Open
if LA74 == 64:
LA74_102 = self.input.LA(3)
if (self.synpred142()) :
alt74 = 1
Consider simplifying this complex logical expression. Open
if LA74 == IDENTIFIER:
LA74_160 = self.input.LA(3)
if (self.synpred142()) :
alt74 = 1
Consider simplifying this complex logical expression. Open
if LA74 == 64:
LA74_102 = self.input.LA(3)
if (self.synpred142()) :
alt74 = 1
Consider simplifying this complex logical expression. Open
if LA74 == 64:
LA74_131 = self.input.LA(3)
if (self.synpred142()) :
alt74 = 1
Consider simplifying this complex logical expression. Open
if LA38 == 66:
LA38_2 = self.input.LA(3)
if (self.synpred78()) :
alt38 = 2
Consider simplifying this complex logical expression. Open
if LA74 == 64:
LA74_44 = self.input.LA(3)
if (self.synpred142()) :
alt74 = 1
Consider simplifying this complex logical expression. Open
if LA74 == 64:
LA74_13 = self.input.LA(3)
if (self.synpred142()) :
alt74 = 1
Consider simplifying this complex logical expression. Open
if LA74 == 64:
LA74_73 = self.input.LA(3)
if (self.synpred142()) :
alt74 = 1
Consider simplifying this complex logical expression. Open
if LA74 == 64:
LA74_191 = self.input.LA(3)
if (self.synpred142()) :
alt74 = 1
File InfPomAlignment.py
has 610 lines of code (exceeds 250 allowed). Consider refactoring. Open
## @file InfPomAlignment.py
# This file contained the adapter for convert INF parser object to POM Object
#
# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
#
File pyassem.py
has 609 lines of code (exceeds 250 allowed). Consider refactoring. Open
"""A flow graph representation for Python bytecode"""
import dis
import types
import sys
File pyassem.py
has 609 lines of code (exceeds 250 allowed). Consider refactoring. Open
"""A flow graph representation for Python bytecode"""
import dis
import types
import sys
Function AnalyzeDscPcd
has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring. Open
def AnalyzeDscPcd(Setting, PcdType, DataType=''):
Setting = Setting.strip()
# There might be escaped quote in a string: \", \\\"
Data = Setting.replace('\\\\', '//').replace('\\\"', '\\\'')
# There might be '|' in string and in ( ... | ... ), replace it with '-'
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function __InitializeInf__
has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring. Open
def __InitializeInf__ (self, BaseAddress = None, BlockSize= None, BlockNum = None, ErasePloarity='1', VtfDict=None) :
#
# Create FV inf file
#
self.InfFileName = os.path.join(GenFdsGlobalVariable.FvDir,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function uname
has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring. Open
def uname():
""" Fairly portable uname interface. Returns a tuple
of strings (system,node,release,version,machine,processor)
identifying the underlying platform.
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function process
has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring. Open
def process(filename, list):
print "-"*70
assert list # if this fails, readwarnings() is broken
try:
fp = open(filename)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function action
has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring. Open
def action(self):
"""Return a code indicating the update status of this file.
The possible return values are:
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function run
has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring. Open
def run(self):
tokenize.tokenize(self.getline, self.tokeneater)
# Remove trailing empty lines.
lines = self.lines
while lines and lines[-1] == "\n":
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _read
has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring. Open
def _read(self, fp, fpname):
"""Parse a sectioned setup file.
The sections in setup file contains a title line at the top,
indicated by a name in square brackets (`[]'), plus key/value
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"