|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.api.batch.sensor.internal.DefaultSensorDescriptor
public class DefaultSensorDescriptor
| Constructor Summary | |
|---|---|
DefaultSensorDescriptor()
|
|
| Method Summary | |
|---|---|
DefaultSensorDescriptor |
createIssuesForRuleRepositories(String... repositoryKeys)
List InputFile.Type this Sensor work on. |
Metric[] |
dependsOn()
|
DefaultSensorDescriptor |
dependsOn(Metric<?>... metrics)
List Metric this Sensor depends on. |
Collection<String> |
languages()
|
String |
name()
|
DefaultSensorDescriptor |
name(String name)
Name of the Sensor. |
Metric[] |
provides()
|
DefaultSensorDescriptor |
provides(Metric<?>... metrics)
List Metric this Sensor provides. |
Collection<String> |
ruleRepositories()
|
Collection<InputFile.Type> |
types()
|
DefaultSensorDescriptor |
workOnFileTypes(InputFile.Type... types)
List InputFile.Type this Sensor work on. |
DefaultSensorDescriptor |
workOnLanguages(String... languageKeys)
List languages this Sensor work on. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSensorDescriptor()
| Method Detail |
|---|
public String name()
public Metric[] dependsOn()
public Metric[] provides()
public Collection<String> languages()
public Collection<InputFile.Type> types()
public Collection<String> ruleRepositories()
public DefaultSensorDescriptor name(String name)
SensorDescriptorSensor. Will be displayed in logs.
name in interface SensorDescriptorpublic DefaultSensorDescriptor dependsOn(Metric<?>... metrics)
SensorDescriptorMetric this Sensor depends on. Will be used to execute sensors in correct order.
dependsOn in interface SensorDescriptorpublic DefaultSensorDescriptor provides(Metric<?>... metrics)
SensorDescriptorMetric this Sensor provides. Will be used to execute sensors in correct order.
provides in interface SensorDescriptorpublic DefaultSensorDescriptor workOnLanguages(String... languageKeys)
SensorDescriptorSensor work on. May be used by the platform to skip execution of the Sensor when
no file for given languages are present in the project.
If no language is provided then it will be executed for all languages.
workOnLanguages in interface SensorDescriptorpublic DefaultSensorDescriptor workOnFileTypes(InputFile.Type... types)
SensorDescriptorInputFile.Type this Sensor work on. May be used by the platform to skip execution of the Sensor when
no file for given type are present in the project.
If you don't call this method then it means sensor is working on all input file types.
workOnFileTypes in interface SensorDescriptorpublic DefaultSensorDescriptor createIssuesForRuleRepositories(String... repositoryKeys)
SensorDescriptorInputFile.Type this Sensor work on. May be used by the platform to skip execution of the Sensor when
no file for given type are present in the project.
If not type is provided then it will be executed for all types.
createIssuesForRuleRepositories in interface SensorDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||