Files
SwiftLint/Source/SwiftLintFramework/Models/Version.swift
T
2026-01-03 12:23:31 +00:00

21 lines
550 B
Swift

/// A type describing the SwiftLint version.
public struct Version: VersionComparable, Sendable {
/// The string value for this version.
public let value: String
/// An alias for `value` required for protocol conformance.
public var rawValue: String {
value
}
/// The current SwiftLint version.
public static let current = Self(value: "0.63.0")
/// Public initializer.
///
/// - parameter value: The string value for this version.
public init(value: String) {
self.value = value
}
}