Showing 186 of 189 total issues
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, modelo, mód, exper, cosos, n_reps, ecs):
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, org, etp, org_hués, etp_hués, sig):
Function parasita
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def parasita(símismo, huésped, etps_entra, etp_emerg, etp_recip, etp_símismo=None):
Function espec_apriori
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def espec_apriori(símismo, apriori, categ, sub_categ, ec, prm, índs=None):
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, val, dims, coords, nombre=None, atribs=None, _verif=True, _conv_coords=None):
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, modelo, exper, t, reps, ecs, vars_interés):
Function simular
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def simular(símismo, nombre, exper, t=None, calibs=None, reps=None, vars_interés=None, depurar=False):
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, modelo, mód, exper, cosos, n_reps, ecs):
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, modelo, mód, exper, cosos, n_reps, ecs):
Function _filtar_par
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def _filtar_paráms(símismo, paráms, en):
if en is None:
return paráms
if isinstance(en, (str, Módulo, Coso, Parám, Exper)):
en = [en]
- 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 9 (exceeds 5 allowed). Consider refactoring. Open
def __init__(símismo, nombre, huevo=False, njuvenil=0, pupa=False, adulto=True, tipo_ecs=None):
if tipo_ecs is None:
tipo_ecs = {}
- 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 concuerda
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def concuerda(símismo, etapa: Etapa) -> bool:
if isinstance(etapa, EtapaFantasma):
if not símismo.incluir_parasitadas:
return False
for h in símismo._iter_etapas_huéspedes(etapa):
- 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 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, huésped, etps_entra, etp_depred, etp_emerg, etp_recip):
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, mód, simul_exper, ecs, vars_interés):
Function calibrar
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def calibrar(símismo, nombre, func, calibs, paráms, n_iter):
Function gen_ecs
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def gen_ecs(símismo, modelo, mód, exper, n_reps):
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, mód: "RedAE", simul_exper, ecs, vars_interés):
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, mód, simul_exper, ecs, vars_interés):
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, prm_espejo, exper, unids, líms, apriori):