Showing 184 of 188 total issues
Function __init__
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, nombre, nombre_py, unid, ec, parientes, inic=0, subs=None, líms=None, info=''):
Function __init__
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, nombre, unid, ingr, egr, tmñ_ciclo, inic=0, líms=None, info=''):
Function __init__
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, nombre, unid, ingr, egr, tmñ_bloques, inic=0, líms=None, info=''):
Function __init__
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, nombre, unid, ingr, egr, tmñ_ciclo, inic=0, líms=None, info=''):
Function _vec_var
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def _vec_var(símismo, var, tx=False):
l_datos = []
with open(símismo.archivo, encoding=símismo.codif) as d:
lector = csv.DictReader(d)
- 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 act_arch_trads
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def act_arch_trads(l_d_t):
"""
Actualiza el fuente de traducciones.
Parameters
- 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 gen_mds
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def gen_mds(archivo):
"""
Automáticamente generar un :class:`~tinamit.envolt.mds.ModeloDS` desde un archivo.
Parameters
- 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 detectar_codif
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def detectar_codif(archivo, máx_líneas=None, cortar=None, cert=0.95, auto='utf-8'):
"""
Detecta la codificación de un fuente. (Necesario porque todavía existen programas dinosaurios que no entienden
los milagros de unicódigo.)
- 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 _validar_conex
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def _validar_conex(símismo, conex: List[ConexiónVars]):
for cnx in conex:
for m in [cnx.modelo_a, cnx.modelo_de]:
if m not in símismo.modelos:
raise ValueError('Modelo {} no definido.'.format(m))
- 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 calibrar
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def calibrar(
Function dibujar_mapa_de_res
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def dibujar_mapa_de_res(
Function __init__
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, nombre, unid, ec, parientes, inic, subs=None, líms=None, info=''):
Function __init__
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, nombre, unid, ec, parientes, inic, subs=None, líms=None, info=''):
Function __init__
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, nombre, unid, ec, parientes, inic, subs=None, líms=None, info=''):
Function __init__
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, nombre, unid, ec, parientes, inic, subs=None, líms=None, info=''):
Function limpiar_mds
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def limpiar_mds(direc='./recursos/mds'):
"""
Limpiamos todos los documentos temporarios generados por los programas de modelos DS.
"""
for c in os.walk(direc):
- 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 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, nombre, unid, ingr, egr, inic=0, líms=None, info=''):
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, nombre, unid, ingr, egr, inic=0, líms=None, info=''):
Function _resolv_conv
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
def _resolv_conv(unid_1, unid_2, conv):
if conv is None:
# Si no se especificó factor de conversión...
mensaje = _('No se pudo identificar una conversión automática entre {} y {}. '
- 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 simular_grupo
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
def simular_grupo(símismo, ops_grupo, nombre='Tinamït', paralelo=False):
"""
Efectua un grupo de simulaciones. Muy útil para accelerar corridas múltiples.
Parameters
- 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"