Files
SwiftLint/tools/Version.swift.template
T
2025-01-09 20:51:51 +01:00

21 lines
555 B
Plaintext

/// 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: "__VERSION__")
/// Public initializer.
///
/// - parameter value: The string value for this version.
public init(value: String) {
self.value = value
}
}