You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Periphery reports false positive on unused imports even though they are required for project compilation. The issue probably is that only generated code from custom Swift Macros is referenced in these cases.
We have also tried to ignore this specific import via comment command ignore but that does not seem to work on import statements.
// periphery:ignore - This has no effect on import statements
import ModuleA // <-- Gets reported as unused
classTests:XCTestCase{func test(){letinstance=SomeProtocolTest()...}}
Environment
periphery: 3.0.1 (launched from CLI via mint run periphery scan)
Xcode: 16.2
The text was updated successfully, but these errors were encountered:
Issue
Periphery reports false positive on unused imports even though they are required for project compilation. The issue probably is that only generated code from custom Swift Macros is referenced in these cases.
We have also tried to ignore this specific import via comment command
ignore
but that does not seem to work on import statements.Is there anything we are missing please?
Example
ModuleA
ModuleB
Environment
periphery: 3.0.1 (launched from CLI via
mint run periphery scan
)Xcode: 16.2
The text was updated successfully, but these errors were encountered: