Remove support for compiling with 5.0.x (#3180)
* Remove support for compiling with 5.0.x * fixup! Remove support for compiling with 5.0.x
This commit is contained in:
parent
ef4a37ee1e
commit
889dc49bb6
|
@ -2,7 +2,8 @@
|
|||
|
||||
#### Breaking
|
||||
|
||||
* None.
|
||||
* SwiftLint now requires Swift 5.1 or higher to build.
|
||||
[JP Simard](https://github.com/jpsim)
|
||||
|
||||
#### Experimental
|
||||
|
||||
|
@ -10,7 +11,8 @@
|
|||
|
||||
#### Enhancements
|
||||
|
||||
* JUnit reporter for GitLab artifact:report:junit with better representation of found issues.
|
||||
* JUnit reporter for GitLab artifact:report:junit with better representation of
|
||||
found issues.
|
||||
[krin-san](https://github.com/krin-san)
|
||||
[#3177](https://github.com/realm/SwiftLint/pull/3177)
|
||||
|
||||
|
|
|
@ -18,15 +18,9 @@ private struct FileCache: Codable {
|
|||
|
||||
/// A persisted cache for storing and retrieving linter results.
|
||||
public final class LinterCache {
|
||||
#if canImport(Darwin) || compiler(>=5.1.0)
|
||||
private typealias Encoder = PropertyListEncoder
|
||||
private typealias Decoder = PropertyListDecoder
|
||||
private static let fileExtension = "plist"
|
||||
#else
|
||||
private typealias Encoder = JSONEncoder
|
||||
private typealias Decoder = JSONDecoder
|
||||
private static let fileExtension = "json"
|
||||
#endif
|
||||
|
||||
private typealias Cache = [String: FileCache]
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ class CompilerProtocolInitRuleTests: XCTestCase {
|
|||
}
|
||||
|
||||
// https://bugs.swift.org/browse/SR-11501
|
||||
#if compiler(<5.1) || (SWIFT_PACKAGE && os(macOS))
|
||||
#if SWIFT_PACKAGE && os(macOS) && compiler(<5.2)
|
||||
private enum UnwrapError: Error {
|
||||
case missingValue
|
||||
}
|
||||
|
|
|
@ -8,8 +8,6 @@ jobs:
|
|||
strategy:
|
||||
maxParallel: 10
|
||||
matrix:
|
||||
swift50:
|
||||
containerImage: swift:5.0
|
||||
swift51:
|
||||
containerImage: swift:5.1
|
||||
# https://bugs.swift.org/browse/SR-12500
|
||||
|
|
Loading…
Reference in New Issue