RuleConfigBuilder class

Configuration builder for programmatic setup.

Constructors

RuleConfigBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() RuleConfig
Builds the configuration.
configureRule(String ruleId, {bool enabled = true, RuleSeverity? severity, Map<String, dynamic>? options, List<String>? exclude}) RuleConfigBuilder
Configures a rule with custom settings.
disableRule(String ruleId) RuleConfigBuilder
Disables a rule.
enableRule(String ruleId) RuleConfigBuilder
Enables a rule with default settings.
exclude(String pattern) RuleConfigBuilder
Adds a global exclude pattern.
excludeAll(Iterable<String> patterns) RuleConfigBuilder
Adds multiple global exclude patterns.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withMetrics(MetricsThresholds metrics) RuleConfigBuilder
Sets metrics thresholds.

Operators

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