OpenC3/cosmos

View on GitHub

Showing 842 of 1,379 total issues

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

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

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

        def fatal(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

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

          def build_log_data(self, log_level, message, user=None, type=None, url=None, other=None):
      Severity: Minor
      Found in openc3/python/openc3/utilities/logger.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/streams/tcpip_client_stream.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                          if String === value
                            value = value.clone
                          elsif Array === value
                            value = Marshal.load(Marshal.dump(value))
                          end
          Severity: Major
          Found in openc3/lib/openc3/packets/packet.rb - About 45 mins to fix

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

                def parse_loop(self, io, yield_non_keyword_lines, remove_quotes_arg, size, rx):
            Severity: Minor
            Found in openc3/python/openc3/config/config_parser.py - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                            if type == 'disconnect'
                              if json_hash['reason'] == 'unauthorized'
                                raise "Unauthorized"
                              end
                            end
              Severity: Major
              Found in openc3/lib/openc3/script/web_socket_api.rb - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                    if input == "REJECTED":
                                        raise RuntimeError("Critical Cmd Rejected")
                                    return input
                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

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

                    Method 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/lib/openc3/script/script.rb - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                      if String === value
                                        value = value.clone
                                      elsif Array === value
                                        value = Marshal.load(Marshal.dump(value))
                                      end
                      Severity: Major
                      Found in openc3/lib/openc3/packets/packet.rb - About 45 mins to fix

                        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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language