mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
21 lines
555 B
Swift
21 lines
555 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.64.0-rc.1")
|
|
|
|
/// Public initializer.
|
|
///
|
|
/// - parameter value: The string value for this version.
|
|
public init(value: String) {
|
|
self.value = value
|
|
}
|
|
}
|