public interface ActiveRules extends BatchComponent
ActiveRulesBuilder
to instantiate
this component in unit tests.Modifier and Type | Method and Description |
---|---|
ActiveRule |
find(RuleKey ruleKey)
Find a
ActiveRule by the associated rule key. |
Collection<ActiveRule> |
findAll()
All the active rules, whatever their repository and related language.
|
Collection<ActiveRule> |
findByRepository(String repository)
The active rules for a given repository, like Findbugs
|
@CheckForNull ActiveRule find(RuleKey ruleKey)
ActiveRule
by the associated rule key. null
is returned if the rule does not exist or if the rule is not activated
on any Quality profile associated with the module.Collection<ActiveRule> findAll()
Collection<ActiveRule> findByRepository(String repository)
Copyright © 2009-2014 SonarSource. All Rights Reserved.