ChildOptionSeverityConfiguration
public struct ChildOptionSeverityConfiguration<Parent: Rule>: RuleConfiguration,
AcceptableByConfigurationElement,
Sendable
A rule configuration that allows to disable (off) an option of a rule or specify its severity level in which
case it’s active.
-
Configuration with a warning severity.
Declaration
Swift
public static var error: `Self` { get } -
Configuration with an error severity.
Declaration
Swift
public static var warning: `Self` { get } -
Configuration disabling an option.
Declaration
Swift
public static var off: `Self` { get } -
The
ChildOptionSeverityConfigurationmapped to a usually usedViolationSeverity. It’snilif the option is set tooff.Declaration
Swift
public var severity: ViolationSeverity? { get } -
Declaration
Swift
public mutating func apply(configuration: Any) throws(Issue) -
Declaration
Swift
public func asOption() -> OptionType
View on GitHub
Install in Dash