RuleParameter

public struct RuleParameter<T> : Equatable where T : Equatable

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 RuleParameter by specifying its properties directly.

    Declaration

    Swift

    public init(severity: ViolationSeverity, value: T)

    Parameters

    severity

    The severity that should be assigned to the violation of this parameter’s value is met.

    value

    The value to configure the rule.