Showing 37 of 37 total issues
Avoid too many return
statements within this function. Open
Open
return float(itm)
Avoid too many return
statements within this function. Open
Open
return datatypes.Symbol(itm)
Avoid too many return
statements within this function. Open
Open
return datatypes.Keyword(itm)
Avoid too many return
statements within this function. Open
Open
return v
Avoid too many return
statements within this function. Open
Open
return arg.get(head)
Avoid too many return
statements within this function. Open
Open
return v
Avoid too many return
statements within this function. Open
Open
return v
Avoid too many return
statements within this function. Open
Open
return self.eval(expr[3], env)
Avoid too many return
statements within this function. Open
Open
return datatypes.Vector([self.eval(e, env) for e in expr])
Avoid too many return
statements within this function. Open
Open
return self.eval(expr[2], env)
Avoid too many return
statements within this function. Open
Open
return v
Avoid too many return
statements within this function. Open
Open
return dynamic.attribute_or_call(instance, method_name, args)
Avoid too many return
statements within this function. Open
Open
return datatypes.Set([self.eval(e, env) for e in expr])
Avoid too many return
statements within this function. Open
Open
return type(self.eval(expr[1], env))
Avoid too many return
statements within this function. Open
Open
return self.apply_function(env.get(head), args, env)
Avoid too many return
statements within this function. Open
Open
return self.eval([head] + expr[1:], env)
Function __init__
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def __init__(self, env, outer={}, bindings=None, args=None):
self.env = env
self.outer = outer
if bindings and args:
if len(bindings) != len(args):
- 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"