rasa/engine/graph.py

Summary

Maintainability
C
1 day
Test Coverage
A
96%

File graph.py has 489 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from __future__ import annotations

import dataclasses
from abc import ABC, abstractmethod
from dataclasses import dataclass, field
Severity: Minor
Found in rasa/engine/graph.py - About 7 hrs to fix

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

        def __init__(
    Severity: Major
    Found in rasa/engine/graph.py - About 1 hr to fix

      Function on_after_node has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def on_after_node(
      Severity: Minor
      Found in rasa/engine/graph.py - About 45 mins to fix

        Function from_schema_node has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def from_schema_node(
        Severity: Minor
        Found in rasa/engine/graph.py - About 45 mins to fix

          Function load has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def load(
          Severity: Minor
          Found in rasa/engine/graph.py - About 45 mins to fix

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

                def create(
            Severity: Minor
            Found in rasa/engine/graph.py - About 35 mins to fix

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

                  def on_before_node(
              Severity: Minor
              Found in rasa/engine/graph.py - About 35 mins to fix

                There are no issues that match your filters.

                Category
                Status