OpenC3/cosmos

View on GitHub
openc3/python/openc3/interfaces/simulated_target_interface.py

Summary

Maintainability
A
2 hrs
Test Coverage

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

    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

      Avoid too many return statements within this function.
      Open

                          return packet
      Severity: Major
      Found in openc3/python/openc3/interfaces/simulated_target_interface.py - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status