class

Analyzer::Swift::SwiftEngine

Inherits FileScanEngine < Analyzer < FileHelper < Reference < Object

Class methods

swift_test_path?(relative_path : String) : Bool

Tests/... directory + *Tests.swift filename: the rigid Swift Package Manager / XCTest conventions for test sources.

Both take the scan-base-relative path (Analyzer#base_relative_path), never the absolute one — SwiftPM's layout is relative to the package, and matching the absolute path made the scan's answer depend on where the package happened to be checked out.

Source
swift_vendor_path?(relative_path : String) : Bool

SwiftPM parks resolved dependency sources under .build/ (and Xcode under .swiftpm/). Scanning them pulls every transitive package's routes into the report — pure noise against the project under test.

Source