OpenC3/cosmos

View on GitHub
openc3-cosmos-init/plugins/packages/openc3-cosmos-demo/targets/INST/lib/sim_inst.rb

Summary

Maintainability
C
1 day
Test Coverage

Method read has 140 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def read(count_100hz, time)
      pending_packets = get_pending_packets(count_100hz)

      pending_packets.each do |packet|
        case packet.packet_name

    Method initialize has 101 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def initialize(target_name)
          super(target_name)
    
          @target = System.targets[target_name]
          position_filename = File.join(@target.dir, 'data', 'position.bin')

      Method write has 67 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def write(packet)
            name = packet.packet_name.upcase
      
            hs_packet = @tlm_packets['HEALTH_STATUS']
            params_packet = @tlm_packets['PARAMS']

        There are no issues that match your filters.

        Category
        Status