|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActiveRules
The rules that are activated on the current module. Quality profiles are merged, so rules can relate to different repositories and languages.
UseActiveRulesBuilder
to instantiate
this component in unit tests.
Method Summary | |
---|---|
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> |
findByLanguage(String language)
The active rules for a given language, like java |
Collection<ActiveRule> |
findByRepository(String repository)
The active rules for a given repository, like findbugs |
Method Detail |
---|
@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)
findbugs
Collection<ActiveRule> findByLanguage(String language)
java
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |