RuleSettings class

Settings for a specific rule.

Constructors

RuleSettings({bool enabled = true, RuleSeverity? severity, Map<String, dynamic> options = const {}, List<String> exclude = const []})
Creates rule settings with unmodifiable collections.
factory

Properties

enabled bool
Whether the rule is enabled.
final
exclude List<String>
File patterns to exclude from this rule (unmodifiable).
final
hashCode int
The hash code for this object.
no setterinherited
options Map<String, dynamic>
Rule-specific options (unmodifiable).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity RuleSeverity?
Override severity (null = use default).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultDisabled → const RuleSettings
Default settings with rule disabled.
defaultEnabled → const RuleSettings
Default settings with rule enabled.