New cyclic dependency between modules (ARCH9205)
Key swift.architecture.new-dependency · Severity warning · Category architecture
Merge requests only. Flags a type reference that makes one folder depend on another which, on the default branch, already depends on it (directly or within three steps): the two now depend on each other. Folders most of the codebase depends on, and a folder with its own parent or child, are not counted.
Incorrect
Section titled “Incorrect”// App/Billing/InvoiceBuilder.swift - on the default branch App/Shipping already uses App/Billingstruct InvoiceBuilder { let tracker: ParcelTracker}Correct
Section titled “Correct”protocol ShipmentStatus { func status(of orderId: Int) -> String } // implemented in App/Shipping
struct InvoiceBuilder { let status: ShipmentStatus}