OpenC3/cosmos

View on GitHub

Showing 1,379 of 1,379 total issues

Method _wait_packet has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def _wait_packet(check,
                     target_name,
                     packet_name,
                     num_packets,
                     timeout,
Severity: Minor
Found in openc3/lib/openc3/script/api_shared.rb - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                  raise ArgumentError, "#{@name}: maximum must be a Float but is a #{@range.last.class}" unless Float === @range.last or Integer === @range.last
    Severity: Major
    Found in openc3/lib/openc3/packets/packet_item.rb - About 45 mins to fix

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

          def build_cmd(target_name, packet_name, params = {}, range_checking = true, raw = false, check_required_params = true)
      Severity: Minor
      Found in openc3/lib/openc3/packets/commands.rb - About 45 mins to fix

        Method initialize has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

              def initialize(target_name = nil, packet_name = nil, default_endianness = :BIG_ENDIAN, description = nil, buffer = nil, item_class = PacketItem)
        Severity: Minor
        Found in openc3/lib/openc3/packets/packet.rb - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                        raise ArgumentError, "#{@name}: maximum must be a Integer but is a #{@range.last.class}" unless Integer === @range.last
          Severity: Major
          Found in openc3/lib/openc3/packets/packet_item.rb - About 45 mins to fix

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

                def handle_exception(
            Severity: Minor
            Found in openc3-cosmos-script-runner-api/scripts/running_script.py - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  if method == "open_file_dialog":  # Simply return the only file
                                      files = files[0]
                                  return files
              Severity: Major
              Found in openc3-cosmos-script-runner-api/scripts/running_script.py - About 45 mins to fix

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

                    def parse_file(
                Severity: Minor
                Found in openc3/python/openc3/config/config_parser.py - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                raise ArgumentError, "#{@name}: minimum must be a Integer but is a #{@range.first.class}" unless Integer === @range.first
                  Severity: Major
                  Found in openc3/lib/openc3/packets/packet_item.rb - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                        for theFilename in input:
                                            file = _get_storage_file(
                                                f"tmp/{theFilename}", scope=RunningScript.instance.scope
                                            )
                    
                    
                    Severity: Major
                    Found in openc3-cosmos-script-runner-api/scripts/running_script.py - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                    if type == 'reject_subscription'
                                      raise "Subscription Rejected"
                                    end
                      Severity: Major
                      Found in openc3/lib/openc3/script/web_socket_api.rb - About 45 mins to fix

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

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

                          Avoid deeply nested control flow statements.
                          Open

                                            if @interface_or_router == 'INTERFACE'
                                              @metric.set(name: 'interface_tlm_total', value: @count, type: 'counter')
                                            else
                                              @metric.set(name: 'router_cmd_total', value: @count, type: 'counter')
                                            end
                          Severity: Major
                          Found in openc3/lib/openc3/microservices/interface_microservice.rb - About 45 mins to fix

                            Method set_comm_timeouts has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def self.set_comm_timeouts(handle, read_interval_timeout = 4294967295, read_total_timeout_multiplier = 0, read_total_timeout_constant = 0, write_total_timeout_multiplier = 0, write_total_timeout_constant = 0)
                            Severity: Minor
                            Found in openc3/lib/openc3/win32/win32.rb - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                break if @cancel_thread
                              Severity: Major
                              Found in openc3/lib/openc3/microservices/interface_microservice.rb - About 45 mins to fix

                                Method write_all_entries has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def write_all_entries(reducer_state, plw, type, target_name, stored, throttle = nil)
                                Severity: Minor
                                Found in openc3/lib/openc3/microservices/reducer_microservice.rb - About 45 mins to fix

                                  Method write_entry has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def write_entry(state, plw, type, target_name, packet_name, stored)
                                  Severity: Minor
                                  Found in openc3/lib/openc3/microservices/reducer_microservice.rb - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                  if value > green_low
                                                    limits_state = :BLUE
                                                  else
                                                    limits_state = :GREEN_LOW
                                                  end
                                    Severity: Major
                                    Found in openc3/lib/openc3/packets/packet.rb - About 45 mins to fix

                                      Method _log_cmd has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def _log_cmd(target_name, cmd_name, cmd_params, raw, no_range, no_hazardous)
                                      Severity: Minor
                                      Found in openc3/lib/openc3/script/commands.rb - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                      if timeout
                                                        end_time = Time.now
                                                        if (start_time - end_time) > timeout
                                                          raise Timeout::Error, "No Data Timeout"
                                                        end
                                        Severity: Major
                                        Found in openc3/lib/openc3/script/web_socket_api.rb - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language