Files
SwiftLint/Source/SwiftLintCore/Models/Version.swift
T
2024-08-22 13:20:18 +02:00

21 lines
540 B
Swift

/// A type describing the SwiftLint version.
public struct Version: VersionComparable {
/// 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.56.2")
/// Public initializer.
///
/// - parameter value: The string value for this version.
public init(value: String) {
self.value = value
}
}