r3w0p/bobocep

View on GitHub

Showing 69 of 69 total issues

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

    def __init__(self,
Severity: Minor
Found in bobocep/cep/engine/decider/runserial.py - About 35 mins to fix

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

        def __init__(self,
    Severity: Minor
    Found in bobocep/cep/gen/event.py - About 35 mins to fix

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

          def __init__(self,
      Severity: Minor
      Found in bobocep/cep/phenom/pattern/pattern.py - About 35 mins to fix

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

            def __init__(self,
        Severity: Minor
        Found in bobocep/cep/phenom/phenom.py - About 35 mins to fix

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

              def followed_by_any(
          Severity: Minor
          Found in bobocep/cep/phenom/pattern/builder.py - About 35 mins to fix

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

                def __init__(self,
            Severity: Minor
            Found in bobocep/cep/engine/decider/run.py - About 35 mins to fix

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

                  def __init__(self,
              Severity: Minor
              Found in bobocep/cep/engine/receiver/receiver.py - About 35 mins to fix

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

                    def followed_by(
                Severity: Minor
                Found in bobocep/cep/phenom/pattern/builder.py - About 35 mins to fix

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

                      def __init__(
                  Severity: Minor
                  Found in bobocep/setup/simple.py - About 35 mins to fix

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

                        def __init__(self,
                    Severity: Minor
                    Found in bobocep/cep/engine/decider/decider.py - About 35 mins to fix

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

                          def __init__(self,
                      Severity: Minor
                      Found in bobocep/cep/action/common/multi.py - About 35 mins to fix

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

                            def __init__(self,
                                         addr: str,
                                         port: int,
                                         urn: str,
                                         id_key: str):
                        Severity: Minor
                        Found in bobocep/dist/device.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 update has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def update(self) -> bool:
                                """
                                Performs an update cycle of the decider that takes an event from its
                                queue and checks it against phenomena and existing runs.
                        
                        
                        Severity: Minor
                        Found in bobocep/cep/engine/decider/decider.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 __init__ has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def __init__(self,
                                         name: str,
                                         patterns: List[BoboPattern],
                                         action: Optional[BoboAction] = None,
                                         datagen: Optional[Callable] = None,
                        Severity: Minor
                        Found in bobocep/cep/phenom/phenom.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 _update has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def _update(self) -> None:
                                """
                                Processes data in the incoming queue and passes them to subscribers.
                                """
                                # Take incoming data and pass to decider
                        Severity: Minor
                        Found in bobocep/dist/tcp.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

                        Avoid too many return statements within this function.
                        Open

                                        return self._process_not_loop(event, block, temp_index)
                        Severity: Major
                        Found in bobocep/cep/engine/decider/run.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                              return self._process_not_loop(event, block, temp_index)
                          Severity: Major
                          Found in bobocep/cep/engine/decider/run.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                            return False
                            Severity: Major
                            Found in bobocep/cep/engine/decider/run.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                                  return self._process_loop(event, block, temp_index)
                              Severity: Major
                              Found in bobocep/cep/engine/decider/run.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                                return True
                                Severity: Major
                                Found in bobocep/cep/engine/decider/run.py - About 30 mins to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language