julienmalard/Tinamit

View on GitHub

Showing 184 of 188 total issues

Function combin_datos has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def combin_datos(símismo, f_inic, f_final, vars_clima):
Severity: Minor
Found in tinamit0/mod/clima.py - About 35 mins to fix

    Function obt_vals has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def obt_vals(símismo, vars_interés, lugares=None, fechas=None):
    Severity: Minor
    Found in tinamit0/datos/fuente.py - About 35 mins to fix

      Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def __init__(
      Severity: Minor
      Found in src/tinamit/hilo.py - About 35 mins to fix

        Function conectar has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def conectar(símismo, var_mds, var_bf, mds_fuente, conv=None):
        Severity: Minor
        Found in tinamit0/conect/_mod.py - About 35 mins to fix

          Function conectar_clima has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def conectar_clima(
          Severity: Minor
          Found in src/tinamit/modelo.py - About 35 mins to fix

            Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def __init__(símismo, archivo, llenar, alpha, **argsll):
            Severity: Minor
            Found in tinamit0/geog/mapa.py - About 35 mins to fix

              Function obt_atrib_var has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              def obt_atrib_var(mod, var, cód_attrib, mns_error=None):
              Severity: Minor
              Found in tinamit0/envolt/mds/vensim_dll/_funcs.py - About 35 mins to fix

                Function gen_res has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def gen_res(símismo, nombre, t, vars_interés):
                Severity: Minor
                Found in tinamit0/mod/vars_mod.py - About 35 mins to fix

                  Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def __init__(símismo, obj, nombre, lugares=None, fechas=None):
                  Severity: Minor
                  Found in tinamit0/datos/fuente.py - About 35 mins to fix

                    Function quitar has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def quitar(símismo, var_fuente, modelo_fuente, modelo_recip, var_recip):
                    Severity: Minor
                    Found in tinamit0/conect/_conex.py - About 35 mins to fix

                      Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def __init__(
                      Severity: Minor
                      Found in src/tinamit/envolt/enchufes.py - About 35 mins to fix

                        Function desconectar_vars has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def desconectar_vars(símismo, var_fuente, modelo_fuente, modelo_recip=None, var_recip=None):
                        Severity: Minor
                        Found in tinamit0/conect/_mod.py - About 35 mins to fix

                          Function _buscar has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def _buscar(símismo, var_fuente, modelo_fuente, modelo_recip, var_recip):
                          Severity: Minor
                          Found in tinamit0/conect/_conex.py - About 35 mins to fix

                            Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def __init__(símismo, tmñ_ciclo, variables, nombre='bf'):
                            Severity: Minor
                            Found in tinamit0/envolt/bf/_impac.py - About 35 mins to fix

                              Function comp has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  def comp(símismo, x):
                                      comp_1 = símismo.convertir(x.children[0])
                                      comp_2 = símismo.convertir(x.children[2])
                                      op = símismo.convertir(x.children[1])
                              
                              
                              Severity: Minor
                              Found in tinamit0/calibs/sintx/_vstr_transf.py - About 35 mins to fix

                              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 obt_atrib_var has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              def obt_atrib_var(mod, var, cód_attrib, mns_error=None):
                                  if cód_attrib in [4, 5, 6, 7, 8, 9, 10]:
                                      lista = True
                                  elif cód_attrib in [1, 2, 3, 11, 12, 13, 14]:
                                      lista = False
                              Severity: Minor
                              Found in tinamit0/envolt/mds/vensim_dll/_funcs.py - About 35 mins to fix

                              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 incrementar has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  def incrementar(símismo, rebanada):
                                      def incr_mod(mod, d, reb):
                                          try:
                                              mod.incr(reb)
                                          except BaseException as e:
                              Severity: Minor
                              Found in tinamit0/conect/_mod.py - About 35 mins to fix

                              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 a_unid_tnmt has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              def a_unid_tnmt(unid):
                                  """
                                  Convierte una unidad de tiempo a una de las reconocidas por Tinamït.
                              
                                  Parameters
                              Severity: Minor
                              Found in tinamit0/tiempo/tiempo.py - About 35 mins to fix

                              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 comp has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  def comp(símismo, x):
                                      import pymc3 as pm
                              
                                      comp_1 = símismo.convertir(x.children[0])
                                      comp_2 = símismo.convertir(x.children[2])
                              Severity: Minor
                              Found in tinamit0/calibs/sintx/_vstr_transf.py - About 35 mins to fix

                              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 estab_valores has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  def estab_valores(símismo, valores, escala_valores=None, unidades=None):
                                      """
                                      Establece los valores para colorar.
                              
                                      Parameters
                              Severity: Minor
                              Found in tinamit0/geog/mapa.py - About 35 mins to fix

                              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

                              Severity
                              Category
                              Status
                              Source
                              Language