Showing 1,373 of 3,019 total issues
Avoid too many return
statements within this function. Open
return arg0 >> arg1
Avoid too many return
statements within this function. Open
return set([cgenobj])
Avoid too many return
statements within this function. Open
return ExprOp("->", expr.args[0].args[0], expr.args[1])
Avoid too many return
statements within this function. Open
return set()
Avoid too many return
statements within this function. Open
return tree
Avoid too many return
statements within this function. Open
return new_keys
Avoid too many return
statements within this function. Open
return tree
Avoid too many return
statements within this function. Open
return tree
Avoid too many return
statements within this function. Open
return set([curobj])
Avoid too many return
statements within this function. Open
return obj.size
Avoid too many return
statements within this function. Open
return True
Avoid too many return
statements within this function. Open
return False
Avoid too many return
statements within this function. Open
return False
Avoid too many return
statements within this function. Open
return True
Function my_GetVolumeInformation
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def my_GetVolumeInformation(jitter, funcname, get_str, set_str):
ret_ad, args = jitter.func_args_stdcall(["lprootpathname",
"lpvolumenamebuffer",
"nvolumenamesize",
"lpvolumeserialnumber",
- 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 simplify
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def simplify(self, simplifier):
"""
Simplify expressions in each irblocks
@simplifier: ExpressionSimplifier instance
"""
- 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 from_ExprMem
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def from_ExprMem(self, expr):
ptr = expr.ptr
if ptr.size <= self.NATIVE_INT_MAX_SIZE:
new_ptr = self.from_expr(ptr)
if expr.size <= self.NATIVE_INT_MAX_SIZE:
- 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 kernel32_SetFilePointer
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def kernel32_SetFilePointer(jitter):
ret_ad, args = jitter.func_args_stdcall(["hwnd", "dinstance",
"p_dinstance_high",
"movemethod"])
- 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 dump
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def dump(self, ids=True, mems=True):
"""Display memory content"""
if ids:
for variable, value in self.ids():
print('%s = %s' % (variable, 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"
Further reading
Function edge_attr
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def edge_attr(self, src, dst):
if src not in self._blocks or dst not in self._blocks:
return {}
src_irdst = self._blocks[src].dst
edge_color = "blue"
- 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"