File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Source/SwiftLintCore/Models Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ public extension SwiftVersion {
7373 static let sixDotOneDotOne = SwiftVersion ( rawValue: " 6.1.1 " )
7474 /// Swift 6.1.2
7575 static let sixDotOneDotTwo = SwiftVersion ( rawValue: " 6.1.2 " )
76+ /// Swift 6.2
77+ static let sixDotTwo = SwiftVersion ( rawValue: " 6.2.0 " )
7678
7779 /// The current detected Swift compiler version, based on the currently accessible SourceKit version.
7880 ///
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ import XCTest
33
44final class SwiftVersionTests : SwiftLintTestCase {
55 func testDetectSwiftVersion( ) {
6- #if compiler(>=6.1.2)
6+ #if compiler(>=6.2)
7+ let version = " 6.2 "
8+ #elseif compiler(>=6.1.2)
79 let version = " 6.1.2 "
810#elseif compiler(>=6.1.1)
911 let version = " 6.1.1 "
You can’t perform that action at this time.
0 commit comments