org.sonar.api.batch.rule
Class Checks<C>

java.lang.Object
  extended by 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

Method Summary
 Checks<C> addAnnotatedChecks(Collection checkClassesOrObjects)
           
 Checks<C> addAnnotatedChecks(Object... checkClassesOrObjects)
           
 Collection<C> all()
           
 C of(RuleKey ruleKey)
           
 RuleKey ruleKey(C check)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.