public interface SensorDescriptor
Sensor
is doing. Information may be used by the platform
to log interesting information or perform some optimization.
See Sensor.describe(SensorDescriptor)
Modifier and Type | Method and Description |
---|---|
SensorDescriptor |
createIssuesForRuleRepositories(String... repositoryKeys)
List rule repositories this
Sensor create issues for. |
SensorDescriptor |
createIssuesForRuleRepository(String... repositoryKey)
Rule repository this
Sensor create issues for. |
SensorDescriptor |
global()
This sensor should be executed at the project level, instead of per-module.
|
SensorDescriptor |
name(String sensorName)
Displayable name of the
Sensor . |
SensorDescriptor |
onlyOnFileType(InputFile.Type type)
InputFile.Type this Sensor work on. |
SensorDescriptor |
onlyOnLanguage(String languageKey)
Language this
Sensor work on. |
SensorDescriptor |
onlyOnLanguages(String... languageKeys)
List languages this
Sensor work on. |
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 |
requireProperties(String... propertyKeys)
Deprecated.
since 6.5 use
onlyWhenConfiguration(Predicate) |
SensorDescriptor |
requireProperty(String... propertyKey)
Deprecated.
since 6.5 use
onlyWhenConfiguration(Predicate) |
SensorDescriptor name(String sensorName)
Sensor
. Will be displayed in logs.SensorDescriptor onlyOnLanguage(String languageKey)
SensorDescriptor onlyOnLanguages(String... languageKeys)
SensorDescriptor onlyOnFileType(InputFile.Type type)
SensorDescriptor createIssuesForRuleRepository(String... repositoryKey)
SensorDescriptor createIssuesForRuleRepositories(String... repositoryKeys)
@Deprecated SensorDescriptor requireProperty(String... propertyKey)
onlyWhenConfiguration(Predicate)
@Deprecated SensorDescriptor requireProperties(String... propertyKeys)
onlyWhenConfiguration(Predicate)
SensorDescriptor global()
SensorDescriptor onlyWhenConfiguration(Predicate<Configuration> predicate)
Configuration
by the platform to decide if execution of the Sensor
should be skipped.Copyright © 2009–2018 SonarSource. All rights reserved.