Showing 494 of 703 total issues
Function get_methods_info
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def get_methods_info(statement_body, class_tags, class_dependencies):
"""Returns information on test methods.
:param statement_body: the body of a "class" statement
:param class_tags: the tags at the class level, to be combined with the
- 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 get_tasks_from_test_task
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def get_tasks_from_test_task(
cls,
test_task,
no_digits,
base_dir,
- 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 collect_errors_by_level
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def collect_errors_by_level(output_file=None, level_check=5, skip_errors=None):
"""Verify dmesg having severity level of OS issue(s).
:param output_file: The file used to save dmesg
:type output_file: str
- 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 get_node
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def get_node(self, path, create=False):
"""
:param path: Path of the desired node (relative to this node)
:param create: Create the node (and intermediary ones) when not present
:return: the node associated with this path
- 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 iteritems
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def iteritems(self):
"""
Iterate through all available params and yield origin, key and value
of each unique 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 get_dispatchers
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def get_dispatchers(module_name):
"""Returns the classes that implement plugin dispatching
These should inherit from the *ExtensionManager* base classes
and contain suitable descriptions.
- 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 9 (exceeds 5 allowed). Consider refactoring. Open
def run(self):
plugins_list = []
directory = os.path.join(BASE_PATH, "optional_plugins")
for plugin in list(Path(directory).glob("*/setup.py")):
- 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_and_check
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def run_and_check(self, testname, e_rc, e_ntests, e_nerrors, e_nfailures, e_nskip):
Function wait_for
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def wait_for(func, timeout, first=0.0, step=1.0, text=None, args=None, kwargs=None):
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Function get_repo
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def get_repo(
Function find_free_ports
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def find_free_ports(
Function check_file
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def check_file(
Function iso
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def iso(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Function get
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(
Function add_log_handler
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def add_log_handler(
Function test_kill_process_tree_timeout_3s
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def test_kill_process_tree_timeout_3s(
Function test_kill_process_tree_dont_timeout_3s
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def test_kill_process_tree_dont_timeout_3s(