File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Source/SwiftLintCore/Models Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ public extension SwiftVersion {
7575 static let sixDotOneDotTwo = SwiftVersion ( rawValue: " 6.1.2 " )
7676 /// Swift 6.2
7777 static let sixDotTwo = SwiftVersion ( rawValue: " 6.2.0 " )
78+ /// Swift 6.2.1
79+ static let sixDotTwoDotOne = SwiftVersion ( rawValue: " 6.2.1 " )
7880
7981 /// The current detected Swift compiler version, based on the currently accessible SourceKit version.
8082 ///
Original file line number Diff line number Diff line change @@ -3,8 +3,11 @@ import TestHelpers
33import XCTest
44
55final class SwiftVersionTests : SwiftLintTestCase {
6+ // swiftlint:disable:next function_body_length
67 func testDetectSwiftVersion( ) {
7- #if compiler(>=6.2.0)
8+ #if compiler(>=6.2.1)
9+ let version = " 6.2.1 "
10+ #elseif compiler(>=6.2.0)
811 let version = " 6.2.0 "
912#elseif compiler(>=6.1.2)
1013 let version = " 6.1.2 "
You can’t perform that action at this time.
0 commit comments