Showing 489 of 902 total issues
Function add
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def add(self, input_set, item, i=None, predecessor=None, causal=None):
Function reconfigure_dax_device
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def reconfigure_dax_device(
Function vg_ramdisk_cleanup
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def vg_ramdisk_cleanup(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, name, min_version=None, min_release=None, arch=None):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function get_asset_by_name
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_asset_by_name(cls, name, cache_dirs, expire=None, asset_hash=None):
Function lv_take_snapshot
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def lv_take_snapshot(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, name, level, disks, metadata, spare_disks=None):
Function parse_test
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def parse_test(self, ok, num, name, directive, explanation):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, reference, result, resolutions=None, info=None, origin=None):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, host, username, port=22, key=None, password=None):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function update_requirement_status
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_requirement_status(
Function from_avocado_config
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def from_avocado_config(cls, kind, uri, *args, config=None, **kwargs):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, kind, uri, *args, config=None, **kwargs):
Function set_requirement
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def set_requirement(
Function find_files
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def find_files(path, recursive=True):
pattern = "*_test.go"
if recursive:
matches = []
for root, _, filenames in os.walk(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 test_basic_workflow
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def test_basic_workflow(self):
"""
Check the basic workflow works using ramdisk
"""
ramdisk_filename = vg_ramdisk_dir = loop_device = None
- 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"