mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
246643fe55
Swift 6 doesn't allow importing executable targets. So we need to move testable logic into a framework.
13 lines
265 B
Swift
13 lines
265 B
Swift
import Foundation
|
|
|
|
package enum SwiftLintError: LocalizedError {
|
|
case usageError(description: String)
|
|
|
|
package var errorDescription: String? {
|
|
switch self {
|
|
case .usageError(let description):
|
|
return description
|
|
}
|
|
}
|
|
}
|