RasaHQ/rasa_core

View on GitHub

Showing 216 of 245 total issues

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

    def __init__(self, host, username, password,
Severity: Minor
Found in rasa/core/broker.py - About 35 mins to fix

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

    def train_core(domain: Text,
    Severity: Minor
    Found in rasa/train.py - About 35 mins to fix

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

          def __init__(self,
      Severity: Minor
      Found in rasa/core/channels/botframework.py - About 35 mins to fix

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

        def train(domain: Text,
        Severity: Minor
        Found in rasa/train.py - About 35 mins to fix

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

              def __init__(self, name,
          Severity: Minor
          Found in rasa/core/slots.py - About 35 mins to fix

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

                def __init__(self, status, reason, message, details=None, help_url=None):
            Severity: Minor
            Found in rasa/core/server.py - About 35 mins to fix

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

              def create_app(agent=None,
              Severity: Minor
              Found in rasa/core/server.py - About 35 mins to fix

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

                    def __init__(self, action_name, trigger_date_time, name=None,
                Severity: Minor
                Found in rasa/core/events/__init__.py - About 35 mins to fix

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

                      def test_cv_none_does_not_trigger_search(self,
                  Severity: Minor
                  Found in tests/core/test_policies.py - About 35 mins to fix

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

                        def test_missing_classes_filled_correctly(
                    Severity: Minor
                    Found in tests/core/test_policies.py - About 35 mins to fix

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

                          def _new_next_cell_state(self, prev_all_cell_states,
                      Severity: Minor
                      Found in rasa/core/policies/tf_utils.py - About 35 mins to fix

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

                            def __init__(self,
                        Severity: Minor
                        Found in rasa/core/training/structures.py - About 35 mins to fix

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

                              def _log_action_on_tracker(self, tracker, action_name, events, policy,
                          Severity: Minor
                          Found in rasa/core/processor.py - About 35 mins to fix

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

                            def run_interactive_learning(stories: Text = None,
                            Severity: Minor
                            Found in rasa/core/training/interactive.py - About 35 mins to fix

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

                                  def __init__(self, sender_id, slots,
                              Severity: Minor
                              Found in rasa/core/training/generator.py - About 35 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

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

                                      def __init__(self, correct_action, predicted_action,
                                  Severity: Minor
                                  Found in rasa/core/test.py - About 35 mins to fix

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

                                    def _add_message_edge(graph: 'networkx.MultiDiGraph',
                                    Severity: Minor
                                    Found in rasa/core/training/visualization.py - About 35 mins to fix

                                      Function deserialise_events has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                      def deserialise_events(serialized_events: List[Dict[Text, Any]]
                                                             ) -> List['Event']:
                                          """Convert a list of dictionaries to a list of corresponding events.
                                      
                                          Example format:
                                      Severity: Minor
                                      Found in rasa/core/events/__init__.py - About 35 mins to fix

                                      Cognitive Complexity

                                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                      A method's cognitive complexity is based on a few simple rules:

                                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                      • Code is considered more complex for each "break in the linear flow of the code"
                                      • Code is considered more complex when "flow breaking structures are nested"

                                      Further reading

                                      Function as_feature has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                          def as_feature(self):
                                              r = [0.0] * self.feature_dimensionality()
                                      
                                              try:
                                                  for i, v in enumerate(self.values):
                                      Severity: Minor
                                      Found in rasa/core/slots.py - About 35 mins to fix

                                      Cognitive Complexity

                                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                      A method's cognitive complexity is based on a few simple rules:

                                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                      • Code is considered more complex for each "break in the linear flow of the code"
                                      • Code is considered more complex when "flow breaking structures are nested"

                                      Further reading

                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language