ChildOptionSeverityConfiguration
public struct ChildOptionSeverityConfiguration<Parent> : RuleConfiguration, AcceptableByConfigurationElement where Parent : Rule
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
ChildOptionSeverityConfiguration
mapped to a usually usedViolationSeverity
. It’snil
if the option is set tooff
.Declaration
Swift
public var severity: ViolationSeverity? { get }
-
Declaration
Swift
public mutating func apply(configuration: Any) throws
-
Declaration
Swift
public func asOption() -> OptionType