Skip to content

Commit 614c002

Browse files
authored
Prepare for Swift 6.2 (#6115)
1 parent 775174b commit 614c002

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Source/SwiftLintCore/Models/SwiftVersion.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
///

Tests/FrameworkTests/SwiftVersionTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import XCTest
33

44
final 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"

0 commit comments

Comments
 (0)