rasa/core/policies/rule_policy.py
File rule_policy.py
has 959 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from __future__ import annotations
import copy
import functools
import logging
import structlog
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _rule_prediction
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _rule_prediction(
Consider simplifying this complex logical expression. Open
Open
if (
# value should be set, therefore
# check whether it is the same as in the state
value_from_rules
and value_from_rules != SHOULD_NOT_BE_SET
Function _check_prediction
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _check_prediction(
Function _collect_sources
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _collect_sources(
Function predict_action_probabilities
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def predict_action_probabilities(