public class DefaultSensorDescriptor extends Object implements SensorDescriptor
Constructor and Description |
---|
DefaultSensorDescriptor() |
Modifier and Type | Method and Description |
---|---|
DefaultSensorDescriptor |
createIssuesForRuleRepositories(String... repositoryKeys)
List
InputFile.Type this Sensor work on. |
Metric[] |
dependsOn() |
DefaultSensorDescriptor |
dependsOn(Metric<?>... metrics)
|
Collection<String> |
languages() |
String |
name() |
DefaultSensorDescriptor |
name(String name)
Name of the
Sensor . |
Metric[] |
provides() |
DefaultSensorDescriptor |
provides(Metric<?>... metrics)
|
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. |
public DefaultSensorDescriptor()
public Collection<String> languages()
public Collection<InputFile.Type> types()
public Collection<String> ruleRepositories()
public DefaultSensorDescriptor name(String name)
SensorDescriptor
Sensor
. Will be displayed in logs.name
in interface SensorDescriptor
public DefaultSensorDescriptor dependsOn(Metric<?>... metrics)
SensorDescriptor
dependsOn
in interface SensorDescriptor
public DefaultSensorDescriptor provides(Metric<?>... metrics)
SensorDescriptor
provides
in interface SensorDescriptor
public DefaultSensorDescriptor workOnLanguages(String... languageKeys)
SensorDescriptor
Sensor
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 SensorDescriptor
public DefaultSensorDescriptor workOnFileTypes(InputFile.Type... types)
SensorDescriptor
InputFile.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 SensorDescriptor
public DefaultSensorDescriptor createIssuesForRuleRepositories(String... repositoryKeys)
SensorDescriptor
InputFile.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
Copyright © 2009–2015 SonarSource. All rights reserved.