OpenC3/cosmos

View on GitHub

Showing 842 of 1,379 total issues

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

    def __init__(
Severity: Minor
Found in openc3/python/openc3/script/web_socket_api.py - About 45 mins to fix

    Function _cmd_disconnect has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def _cmd_disconnect(cmd, raw, no_range, no_hazardous, *args, scope):
    Severity: Minor
    Found in openc3/python/openc3/script/commands.py - About 45 mins to fix

      Function prompt_for_critical_cmd has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def prompt_for_critical_cmd(uuid, _username, _target_name, _cmd_name, _cmd_params, cmd_string):
      Severity: Minor
      Found in openc3/python/openc3/script/__init__.py - About 45 mins to fix

        Function inject_tlm has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def inject_tlm(
        Severity: Minor
        Found in openc3/python/openc3/topics/interface_topic.py - About 45 mins to fix

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

              def __init__(
          Severity: Minor
          Found in openc3/python/openc3/script/web_socket_api.py - About 45 mins to fix

            Function raise_critical_cmd_error has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def raise_critical_cmd_error(cls, msg_hash, username, target_name, cmd_name, cmd_params, cmd_string):
            Severity: Minor
            Found in openc3/python/openc3/topics/command_topic.py - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                        if (diff_type === DIFF_EQUAL) {
                          patch.length2 += diff_text.length
                          start2 += diff_text.length
                        } else {
                          empty = false

                Function running_script_prompt has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                def running_script_prompt(
                Severity: Minor
                Found in openc3/python/openc3/script/script_runner.py - About 45 mins to fix

                  Function read_all has 6 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def read_all(
                  Severity: Minor
                  Found in openc3/python/openc3/script/web_socket_api.py - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if msg_type == "reject_subscription":
                                                raise RuntimeError("Subscription Rejected")
                                            if timeout:
                    Severity: Major
                    Found in openc3/python/openc3/script/web_socket_api.py - About 45 mins to fix

                      Function create_timeline_activity has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      def create_timeline_activity(name, kind, start, stop, data={}, scope=OPENC3_SCOPE):
                      Severity: Minor
                      Found in openc3/python/openc3/script/cosmos_calendar.py - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if timeout:
                                                    end_time = time.time()
                                                    if (start_time - end_time) > timeout:
                                                        raise TimeoutError("No Data Timeout")
                                                # if defined? RunningScript and RunningScript.instance:
                        Severity: Major
                        Found in openc3/python/openc3/script/web_socket_api.py - About 45 mins to fix

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

                              def __init__(
                          Severity: Minor
                          Found in openc3/python/openc3/interfaces/tcpip_server_interface.py - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if isinstance(range_check_value, str):
                                                        range_check_value = f"'{range_check_value}'"
                                                    raise RuntimeError(
                            Severity: Major
                            Found in openc3/python/openc3/packets/commands.py - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if packet == "DISCONNECT":
                                                          Logger.info(
                                                              f"{self.name}: Protocol {protocol.__class__.__name__} read_packet requested disconnect"
                                                          )
                                                          return None
                              Severity: Major
                              Found in openc3/python/openc3/interfaces/simulated_target_interface.py - About 45 mins to fix

                                Function interface_protocol_cmd has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                def interface_protocol_cmd(
                                Severity: Minor
                                Found in openc3/python/openc3/api/interface_api.py - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if len(values) > 0:
                                                              MetricModel.set(json, scope=instance.scope)
                                  
                                              # Only check whether to update at a set interval
                                              run_time = time.time() - start_time
                                  Severity: Major
                                  Found in openc3/python/openc3/utilities/metric.py - About 45 mins to fix

                                    Function build_cmd has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def build_cmd(
                                    Severity: Minor
                                    Found in openc3/python/openc3/packets/commands.py - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if packet == "STOP":
                                                                  break
                                                          if packet == "STOP":
                                      Severity: Major
                                      Found in openc3/python/openc3/interfaces/simulated_target_interface.py - About 45 mins to fix

                                        Function error has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            def error(self, message=None, scope=None, user=None, type=LOG, url=None, other=None):
                                        Severity: Minor
                                        Found in openc3/python/openc3/utilities/logger.py - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language