OpenC3/cosmos

View on GitHub
openc3-cosmos-cmd-tlm-api/app/models/streaming_object_collection.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method remove has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def remove(object)
    @mutex.synchronize do
      found_object = @objects_by_id[object.id]
      if found_object
        @objects.delete(found_object)
Severity: Minor
Found in openc3-cosmos-cmd-tlm-api/app/models/streaming_object_collection.rb - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Open

                  if packet_objects.length == 0
                    # Nothing left in either for this topic
                    @topics_and_offsets.delete(object.topic)
                  end
    Severity: Major
    Found in openc3-cosmos-cmd-tlm-api/app/models/streaming_object_collection.rb - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status