public RuleSetProvider
A rule set provider, as the name states, is responsible for creating rule sets.
When writing own rule set providers make sure to register them according the ServiceLoader documentation. http://docs.oracle.com/javase/8/docs/api/java/util/ServiceLoader.html
| Modifier and Type | Interface and Description |
|---|---|
static class |
RuleSetProvider.DefaultImpls
A rule set provider, as the name states, is responsible for creating rule sets.
|
| Modifier and Type | Method and Description |
|---|---|
RuleSet |
buildRuleset(Config config)
Can return a rule set if this specific rule set is not considered as ignore.
|
java.lang.String |
getRuleSetId()
Every rule set must be pre-configured with an ID to validate if this rule set
must be created for current analysis.
|
RuleSet |
instance(Config config)
This function must be implemented to provide custom rule sets.
Make sure to pass the configuration to each rule to allow rules
to be self configurable.
|
java.lang.String getRuleSetId()
Every rule set must be pre-configured with an ID to validate if this rule set must be created for current analysis.
RuleSet buildRuleset(Config config)
Can return a rule set if this specific rule set is not considered as ignore.
Api notice: As the rule set id is not known before creating the rule set instance, we must first create the rule set and then check if it is active.