mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
Support Swift version 6.3 (#6428)
This commit is contained in:
@@ -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.
|
||||
///
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user