org.sonar.api.batch.rule
Class Checks<C>
java.lang.Object
org.sonar.api.batch.rule.Checks<C>
public class Checks<C>
- extends Object
Instantiates checks (objects that provide implementation of coding
rules) that use sonar-check-api annotations. Checks are selected and configured
from the Quality profiles enabled on the current module.
Example of check class:
- Since:
- 4.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
of
@CheckForNull
public C of(RuleKey ruleKey)
all
public Collection<C> all()
ruleKey
@CheckForNull
public RuleKey ruleKey(C check)
addAnnotatedChecks
public Checks<C> addAnnotatedChecks(Object... checkClassesOrObjects)
addAnnotatedChecks
public Checks<C> addAnnotatedChecks(Collection checkClassesOrObjects)
Copyright © 2009-2014 SonarSource. All Rights Reserved.