ChildOptionSeverityConfiguration
+public struct ChildOptionSeverityConfiguration<Parent> : RuleConfiguration, Equatable 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.
-
+
-
+ ++
+ + + error +++ +++ + +++Configuration with a warning severity.
+ +++Declaration
+++Swift
+
+ +public static var error: `Self` { get }+ Show on GitHub ++
+ -
+ ++
+ + + warning +++ +++ + +++Configuration with an error severity.
+ +++Declaration
+++Swift
+
+ +public static var warning: `Self` { get }+ Show on GitHub ++
+ -
+ ++
+ + + off +++ +++ + +++Configuration disabling an option.
+ +++Declaration
+++Swift
+
+ +public static var off: `Self` { get }+ Show on GitHub ++
+ -
+ ++
+ + + consoleDescription +++ +++ + ++ ++++Declaration
+++Swift
+
+ +public var consoleDescription: String { get }+ Show on GitHub ++
+ -
+ ++
+ + + severity +++ +++ + +++The
+ +ChildOptionSeverityConfigurationmapped to a usually usedViolationSeverity. It’snilif the option +is set tooff.++Declaration
+++Swift
+
+ +public var severity: ViolationSeverity? { get }+ Show on GitHub ++
+ -
+ ++
+ + + apply(configuration:+) ++ +++ + ++ ++++Declaration
+++Swift
+
+ +public mutating func apply(configuration: Any) throws+ Show on GitHub ++
+
+ View on GitHub
+
+ Install in Dash
+
+ ChildOptionSeverityConfiguration Structure Reference
+