Support Swift version 6.3 (#6428)

This commit is contained in:
Danny Mösch
2026-01-11 18:52:10 +01:00
committed by GitHub
parent 0fe21b7f86
commit e6b9643965
2 changed files with 5 additions and 1 deletions
@@ -81,6 +81,8 @@ public extension SwiftVersion {
static let sixDotTwoDotTwo = SwiftVersion(rawValue: "6.2.2")
/// Swift 6.2.3
static let sixDotTwoDotThree = SwiftVersion(rawValue: "6.2.3")
/// Swift 6.3
static let sixDotThree = SwiftVersion(rawValue: "6.3.0")
/// The current detected Swift compiler version, based on the currently accessible SourceKit version.
///
+3 -1
View File
@@ -5,7 +5,9 @@ import XCTest
final class SwiftVersionTests: SwiftLintTestCase {
// swiftlint:disable:next function_body_length
func testDetectSwiftVersion() {
#if compiler(>=6.2.3)
#if compiler(>=6.3.0)
let version = "6.3.0"
#elseif compiler(>=6.2.3)
let version = "6.2.3"
#elseif compiler(>=6.2.2)
let version = "6.2.2"