Showing 558 of 559 total issues

File domain.py has 1604 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import copy
import collections
import json
import logging
import os
Severity: Major
Found in rasa/shared/core/domain.py - About 4 days to fix

    File events.py has 1601 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import abc
    import copy
    import json
    import logging
    import structlog
    Severity: Major
    Found in rasa/shared/core/events.py - About 4 days to fix

      File test.py has 1593 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      import copy
      import itertools
      import os
      import logging
      import structlog
      Severity: Major
      Found in rasa/nlu/test.py - About 4 days to fix

        File ted_policy.py has 1581 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        from __future__ import annotations
        import logging
        
        from rasa.engine.recipes.default_recipe import DefaultV1Recipe
        from pathlib import Path
        Severity: Major
        Found in rasa/core/policies/ted_policy.py - About 4 days to fix

          File diet_classifier.py has 1438 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          from __future__ import annotations
          import copy
          import logging
          from collections import defaultdict
          from pathlib import Path
          Severity: Major
          Found in rasa/nlu/classifiers/diet_classifier.py - About 3 days to fix

            File interactive.py has 1335 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            import asyncio
            import logging
            import os
            import textwrap
            import uuid
            Severity: Major
            Found in rasa/core/training/interactive.py - About 3 days to fix

              File tracker_store.py has 1300 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              from __future__ import annotations
              import contextlib
              import itertools
              import json
              import logging
              Severity: Major
              Found in rasa/core/tracker_store.py - About 3 days to fix

                File server.py has 1242 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                import asyncio
                import concurrent.futures
                import logging
                import multiprocessing
                import os
                Severity: Major
                Found in rasa/server.py - About 3 days to fix

                  File layers.py has 1226 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  import logging
                  from typing import List, Optional, Text, Tuple, Callable, Union, Any
                  import tensorflow as tf
                  
                  # TODO: The following is not (yet) available via tf.keras
                  Severity: Major
                  Found in rasa/utils/tensorflow/layers.py - About 3 days to fix

                    File action.py has 1116 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    import copy
                    import json
                    import logging
                    from typing import (
                        List,
                    Severity: Major
                    Found in rasa/core/actions/action.py - About 2 days to fix

                      File test.py has 1091 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      import logging
                      import os
                      from pathlib import Path
                      import tempfile
                      import warnings as pywarnings
                      Severity: Major
                      Found in rasa/core/test.py - About 2 days to fix

                        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

                          File rule_policy.py has 959 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          from __future__ import annotations
                          import copy
                          import functools
                          import logging
                          import structlog
                          Severity: Major
                          Found in rasa/core/policies/rule_policy.py - About 2 days to fix

                            File tracker_featurizers.py has 936 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            from __future__ import annotations
                            from pathlib import Path
                            from collections import defaultdict
                            from abc import abstractmethod
                            import jsonpickle
                            Severity: Major
                            Found in rasa/core/featurizers/tracker_featurizers.py - About 2 days to fix

                              File processor.py has 924 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              import inspect
                              import copy
                              import logging
                              import structlog
                              import os
                              Severity: Major
                              Found in rasa/core/processor.py - About 2 days to fix

                                File rasa_layers.py has 868 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                import tensorflow as tf
                                import numpy as np
                                from typing import Text, List, Dict, Any, Union, Optional, Tuple, Callable
                                
                                from rasa.shared.nlu.constants import TEXT
                                Severity: Major
                                Found in rasa/utils/tensorflow/rasa_layers.py - About 2 days to fix

                                  File telemetry.py has 823 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  import asyncio
                                  import contextlib
                                  from datetime import datetime
                                  from functools import wraps
                                  import hashlib
                                  Severity: Major
                                  Found in rasa/telemetry.py - About 1 day to fix

                                    File model_data.py has 777 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    import logging
                                    from typing import (
                                        Optional,
                                        DefaultDict,
                                        Dict,
                                    Severity: Major
                                    Found in rasa/utils/tensorflow/model_data.py - About 1 day to fix

                                      File unexpected_intent_policy.py has 767 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      import dataclasses
                                      import logging
                                      from pathlib import Path
                                      from typing import Any, List, Optional, Text, Dict, Type, Union
                                      
                                      
                                      Severity: Major
                                      Found in rasa/core/policies/unexpected_intent_policy.py - About 1 day to fix

                                        File trackers.py has 762 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        import copy
                                        import dataclasses
                                        import itertools
                                        import logging
                                        import os
                                        Severity: Major
                                        Found in rasa/shared/core/trackers.py - About 1 day to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language