RasaHQ/rasa_core

View on GitHub
rasa/core/agent.py

Summary

Maintainability
D
1 day
Test Coverage

File agent.py has 574 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import asyncio
import logging
import os
import shutil
import tempfile
Severity: Major
Found in rasa/core/agent.py - About 1 day to fix

    Agent has 21 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Agent(object):
        """The Agent class provides a convenient interface for the most important
         Rasa Core functionality.
    
         This includes training, handling messages, loading a dialogue model,
    Severity: Minor
    Found in rasa/core/agent.py - About 2 hrs to fix

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

          def __init__(
      Severity: Major
      Found in rasa/core/agent.py - About 50 mins to fix

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

            def load(cls,
        Severity: Minor
        Found in rasa/core/agent.py - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status