Support Swift version 6.2.1 (#6338)

This commit is contained in:
Danny Mösch
2025-11-09 13:37:43 +01:00
committed by GitHub
parent 9e5a526483
commit f59f41b36e
2 changed files with 6 additions and 1 deletions
@@ -75,6 +75,8 @@ public extension SwiftVersion {
static let sixDotOneDotTwo = SwiftVersion(rawValue: "6.1.2")
/// Swift 6.2
static let sixDotTwo = SwiftVersion(rawValue: "6.2.0")
/// Swift 6.2.1
static let sixDotTwoDotOne = SwiftVersion(rawValue: "6.2.1")
/// The current detected Swift compiler version, based on the currently accessible SourceKit version.
///
+4 -1
View File
@@ -3,8 +3,11 @@ import TestHelpers
import XCTest
final class SwiftVersionTests: SwiftLintTestCase {
// swiftlint:disable:next function_body_length
func testDetectSwiftVersion() {
#if compiler(>=6.2.0)
#if compiler(>=6.2.1)
let version = "6.2.1"
#elseif compiler(>=6.2.0)
let version = "6.2.0"
#elseif compiler(>=6.1.2)
let version = "6.1.2"