Files
SwiftLint/Source/SwiftLintFramework/SwiftLintError.swift
T
Danny Mösch 246643fe55 Keep only command-line related functions in swiftlint module (#5806)
Swift 6 doesn't allow importing executable targets. So we need to
move testable logic into a framework.
2024-09-29 17:23:46 +02:00

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
}
}
}