diff --git a/Source/SwiftLintCore/Models/SwiftVersion.swift b/Source/SwiftLintCore/Models/SwiftVersion.swift index 68c3e2611..f7f818692 100644 --- a/Source/SwiftLintCore/Models/SwiftVersion.swift +++ b/Source/SwiftLintCore/Models/SwiftVersion.swift @@ -77,6 +77,8 @@ public extension SwiftVersion { static let sixDotTwo = SwiftVersion(rawValue: "6.2.0") /// Swift 6.2.1 static let sixDotTwoDotOne = SwiftVersion(rawValue: "6.2.1") + /// Swift 6.2.2 + static let sixDotTwoDotTwo = SwiftVersion(rawValue: "6.2.2") /// The current detected Swift compiler version, based on the currently accessible SourceKit version. /// diff --git a/Tests/FrameworkTests/SwiftVersionTests.swift b/Tests/FrameworkTests/SwiftVersionTests.swift index d7b1ce483..f689a60ee 100644 --- a/Tests/FrameworkTests/SwiftVersionTests.swift +++ b/Tests/FrameworkTests/SwiftVersionTests.swift @@ -5,7 +5,9 @@ import XCTest final class SwiftVersionTests: SwiftLintTestCase { // swiftlint:disable:next function_body_length func testDetectSwiftVersion() { -#if compiler(>=6.2.1) +#if compiler(>=6.2.2) + let version = "6.2.2" +#elseif compiler(>=6.2.1) let version = "6.2.1" #elseif compiler(>=6.2.0) let version = "6.2.0"