julienmalard/Tikon

View on GitHub

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):
Severity: Major
Found in tikon/móds/rae/orgs/ecs/_ecs_coh.py - About 1 hr to fix

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

        def __init__(símismo, org, etp, org_hués, etp_hués, sig):
    Severity: Major
    Found in tikon/móds/rae/orgs/etapa.py - About 1 hr to fix

      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):
      Severity: Major
      Found in tikon/móds/rae/orgs/organismo.py - About 1 hr to fix

        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):
        Severity: Major
        Found in tikon/central/coso.py - About 1 hr to fix

          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):
          Severity: Major
          Found in tikon/central/matriz.py - About 1 hr to fix

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

                def __init__(símismo, modelo, exper, t, reps, ecs, vars_interés):
            Severity: Major
            Found in tikon/central/simul.py - About 1 hr to fix

              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):
              Severity: Major
              Found in tikon/central/modelo.py - About 1 hr to fix

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

                    def __init__(símismo, modelo, mód, exper, cosos, n_reps, ecs):
                Severity: Major
                Found in tikon/ecs/árb_mód.py - About 1 hr to fix

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

                      def __init__(símismo, modelo, mód, exper, cosos, n_reps, ecs):
                  Severity: Major
                  Found in tikon/ecs/árb_mód.py - About 1 hr to fix

                    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]
                    Severity: Minor
                    Found in tikon/central/modelo.py - About 55 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 __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 = {}
                    
                    
                    Severity: Minor
                    Found in tikon/móds/rae/orgs/insectos/ins.py - About 55 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 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):
                    Severity: Minor
                    Found in tikon/móds/rae/orgs/etapa.py - About 55 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 __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def __init__(
                    Severity: Major
                    Found in tikon/ecs/paráms.py - About 50 mins to fix

                      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):
                      Severity: Major
                      Found in tikon/móds/rae/orgs/organismo.py - About 50 mins to fix

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

                            def __init__(símismo, mód, simul_exper, ecs, vars_interés):
                        Severity: Major
                        Found in tikon/móds/trampa/mód.py - About 50 mins to fix

                          Function calibrar has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def calibrar(símismo, nombre, func, calibs, paráms, n_iter):
                          Severity: Major
                          Found in tikon/calibrador/calib.py - About 50 mins to fix

                            Function gen_ecs has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def gen_ecs(símismo, modelo, mód, exper, n_reps):
                            Severity: Major
                            Found in tikon/móds/rae/red/red.py - About 50 mins to fix

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

                                  def __init__(símismo, mód: "RedAE", simul_exper, ecs, vars_interés):
                              Severity: Major
                              Found in tikon/móds/rae/red/red.py - About 50 mins to fix

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

                                    def __init__(símismo, mód, simul_exper, ecs, vars_interés):
                                Severity: Major
                                Found in tikon/móds/apli/apli.py - About 50 mins to fix

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

                                      def __init__(símismo, prm_espejo, exper, unids, líms, apriori):
                                  Severity: Major
                                  Found in tikon/central/paráms_exper.py - About 50 mins to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language