rasa/engine/recipes/default_recipe.py

Summary

Maintainability
F
3 days
Test Coverage
A
100%

File default_recipe.py has 1008 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from __future__ import annotations

import copy
import enum
import logging
Severity: Major
Found in rasa/engine/recipes/default_recipe.py - About 2 days to fix

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

        def _add_nlu_predict_node_from_train(
    Severity: Major
    Found in rasa/engine/recipes/default_recipe.py - About 50 mins to fix

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

          def _add_nlu_process_node(
      Severity: Major
      Found in rasa/engine/recipes/default_recipe.py - About 50 mins to fix

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

            def _add_nlu_train_node(
        Severity: Major
        Found in rasa/engine/recipes/default_recipe.py - About 50 mins to fix

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

              def _add_core_predict_nodes(
          Severity: Minor
          Found in rasa/engine/recipes/default_recipe.py - About 35 mins to fix

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

                def _add_core_train_nodes(
            Severity: Minor
            Found in rasa/engine/recipes/default_recipe.py - About 35 mins to fix

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

                  def graph_config_for_recipe(
              Severity: Minor
              Found in rasa/engine/recipes/default_recipe.py - About 35 mins to fix

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

                    def _add_nlu_predict_nodes(
                Severity: Minor
                Found in rasa/engine/recipes/default_recipe.py - About 35 mins to fix

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

                      def _dump_config(
                  Severity: Minor
                  Found in rasa/engine/recipes/default_recipe.py - About 35 mins to fix

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

                        def _add_nlu_predict_node(
                    Severity: Minor
                    Found in rasa/engine/recipes/default_recipe.py - About 35 mins to fix

                      There are no issues that match your filters.

                      Category
                      Status