Package | Description |
---|---|
org.sonar.api.batch.sensor | |
org.sonar.api.batch.sensor.internal |
Modifier and Type | Method and Description |
---|---|
SensorDescriptor |
SensorDescriptor.createIssuesForRuleRepositories(String... repositoryKeys)
List rule repositories this
Sensor create issues for. |
SensorDescriptor |
SensorDescriptor.createIssuesForRuleRepository(String... repositoryKey)
Rule repository this
Sensor create issues for. |
SensorDescriptor |
SensorDescriptor.global()
This sensor should be executed at the project level, instead of per-module.
|
SensorDescriptor |
SensorDescriptor.name(String sensorName)
Displayable name of the
Sensor . |
SensorDescriptor |
SensorDescriptor.onlyOnFileType(InputFile.Type type)
InputFile.Type this Sensor work on. |
SensorDescriptor |
SensorDescriptor.onlyOnLanguage(String languageKey)
Language this
Sensor work on. |
SensorDescriptor |
SensorDescriptor.onlyOnLanguages(String... languageKeys)
List languages this
Sensor work on. |
SensorDescriptor |
SensorDescriptor.onlyWhenConfiguration(Predicate<Configuration> predicate)
Predicate that will be evaluated on current module/project
Configuration by the platform to decide if execution of the Sensor should be skipped. |
SensorDescriptor |
SensorDescriptor.requireProperties(String... propertyKeys)
Deprecated.
since 6.5 use
onlyWhenConfiguration(Predicate) |
SensorDescriptor |
SensorDescriptor.requireProperty(String... propertyKey)
Deprecated.
since 6.5 use
onlyWhenConfiguration(Predicate) |
Modifier and Type | Method and Description |
---|---|
void |
Sensor.describe(SensorDescriptor descriptor)
Populate
SensorDescriptor of this sensor. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultSensorDescriptor |
Modifier and Type | Method and Description |
---|---|
SensorDescriptor |
DefaultSensorDescriptor.global() |
SensorDescriptor |
DefaultSensorDescriptor.onlyWhenConfiguration(Predicate<Configuration> configurationPredicate) |
Copyright © 2009–2017 SonarSource. All rights reserved.