Showing 233 of 415 total issues
Function run
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self,
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Function create_loadcell_hoc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def create_loadcell_hoc(
Function create_neuroml_simulation
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def create_neuroml_simulation(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, name, value=None, frozen=False,
Function define_protocols
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def define_protocols(protocols_filename, stochkv_det=None,
Function plot_dt_scan
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def plot_dt_scan(best_ind_dict, good_solutions, dt, sg, stderr):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, name, value=None, frozen=False, bounds=None,
Function create_neuroml_cell
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def create_neuroml_cell(
Function record_stats
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def record_stats(stats, logbook, gen, population, invalid_count):
Function run
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(
Function calculate_features
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def calculate_features(
Function create_hoc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def create_hoc(
Function create_hoc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def create_hoc(self, param_values,
Function find_icomp
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def find_icomp(self, sim, iseclist):
"""Find the index of the compartment based on a list of isec
and a distance"""
icomp = 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"
Further reading
Function main
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def main():
"""Main"""
import matplotlib.pyplot as plt
for deterministic in [True, False]:
- 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 main
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def main():
"""Main"""
import matplotlib.pyplot as plt
for deterministic in [True, False]:
- 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"