public class ThresholdRule
extends Rule
Provides a threshold attribute for this rule, which is specified manually for default values but can be also obtained from within a configuration object.
ConfigAware.DefaultImplsConfig.Companion| Constructor and Description |
|---|
ThresholdRule(Config config,
int defaultThreshold)
Provides a threshold attribute for this rule, which is specified manually for default values
but can be also obtained from within a configuration object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getThreshold()
The used threshold for this rule is loaded from the configuration or used from the constructor value.
|
getConfig, getId, getIssue, visitConditionclearFindings, getContext, getFindings, getId, postVisit, preVisit, report, report, visit, visitCondition, visitFilegetActive, getAutoCorrect, getConfig, getId, subConfig, valueOrDefault, valueOrNull, withAutoCorrectsubConfig, valueOrDefault, valueOrNullclearFindings, getFindings, report, reportpublic ThresholdRule(Config config, int defaultThreshold)
Provides a threshold attribute for this rule, which is specified manually for default values but can be also obtained from within a configuration object.