RuleParameter
@preconcurrency
public struct RuleParameter<T> : Equatable, Sendable where T : Equatable, T : Sendable
A configuration parameter for rules.
-
The severity that should be assigned to the violation of this parameter’s value is met.
Declaration
Swift
public let severity: ViolationSeverity -
The value to configure the rule.
Declaration
Swift
public let value: T -
Creates a
RuleParameterby specifying its properties directly.Declaration
Swift
public init(severity: ViolationSeverity, value: T)Parameters
severityThe severity that should be assigned to the violation of this parameter’s value is met.
valueThe value to configure the rule.
View on GitHub
Install in Dash