تخطَّ إلى المحتوى

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.

// App/Billing/InvoiceBuilder.swift - on the default branch App/Shipping already uses App/Billing
struct InvoiceBuilder {
let tracker: ParcelTracker
}
App/Billing/ShipmentStatus.swift
protocol ShipmentStatus { func status(of orderId: Int) -> String } // implemented in App/Shipping
struct InvoiceBuilder {
let status: ShipmentStatus
}