Showing 32 of 84 total issues
Function add
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def add(self, suffix, name, difference, weight, src=None):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, host, workers, base_output_path, metadata, extra):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, host, workers, base_output_path, metadata, extra):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, host, workers, base_output_path, metadata, extra):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, host, workers, base_output_path, metadata, extra):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, host, workers, base_output_path, metadata, extra):
Function wait_for
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def wait_for(func, timeout, step=1.0, args=None, kwargs=None):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, test, dst, tolerance, primary=False, params=None):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, host, workers, base_output_path,
Function comma_separated_ranges_to_list
has a Cognitive Complexity of 7 (exceeds 6 allowed). Consider refactoring. Open
def comma_separated_ranges_to_list(text):
"""
Provides a list from comma separated ranges
:param text: string of comma separated range
- 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 __init__
has a Cognitive Complexity of 7 (exceeds 6 allowed). Consider refactoring. Open
def __init__(self, mean_tolerance, stddev_tolerance, model=None):
self.mean_tolerance = mean_tolerance
self.stddev_tolerance = stddev_tolerance
if model:
with open(model, encoding="utf-8") as fd_model:
- 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 check_output
has a Cognitive Complexity of 7 (exceeds 6 allowed). Consider refactoring. Open
def check_output(*args, **kwargs):
"""
Execute command while masking stdin and providing better errors.
:param args: args to be passed to subprocess.check_output
- 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"