@ServerSide @ComputeEngineSide public interface RuleFinder
| Modifier and Type | Method and Description |
|---|---|
Rule |
find(RuleQuery query) |
java.util.Collection<Rule> |
findAll(RuleQuery query) |
Rule |
findById(int ruleId)
Deprecated.
since 4.4, Please use
findByKey(org.sonar.api.rule.RuleKey)} |
Rule |
findByKey(RuleKey key) |
Rule |
findByKey(java.lang.String repositoryKey,
java.lang.String key) |
@CheckForNull @Deprecated Rule findById(int ruleId)
findByKey(org.sonar.api.rule.RuleKey)}@CheckForNull Rule findByKey(java.lang.String repositoryKey, java.lang.String key)
@CheckForNull Rule find(RuleQuery query)
java.lang.IllegalArgumentException - if more than one result