public class DefaultSensorDescriptor extends Object implements SensorDescriptor
Constructor and Description |
---|
DefaultSensorDescriptor() |
public DefaultSensorDescriptor()
public Collection<String> languages()
@Nullable public InputFile.Type type()
public Collection<String> ruleRepositories()
public Collection<String> properties()
public DefaultSensorDescriptor name(String name)
SensorDescriptor
Sensor
. Will be displayed in logs.name
in interface SensorDescriptor
public DefaultSensorDescriptor onlyOnLanguage(String languageKey)
SensorDescriptor
Sensor
work on. Used by the platform to skip execution of the Sensor
when
no file for given languages are present in the project.
Default is to execute sensor for all languages.onlyOnLanguage
in interface SensorDescriptor
public DefaultSensorDescriptor onlyOnLanguages(String... languageKeys)
SensorDescriptor
Sensor
work on. Used by the platform to skip execution of the Sensor
when
no file for given languages are present in the project.
Default is to execute sensor for all languages.onlyOnLanguages
in interface SensorDescriptor
public DefaultSensorDescriptor onlyOnFileType(InputFile.Type type)
SensorDescriptor
InputFile.Type
this Sensor
work on. Used by the platform to skip execution of the Sensor
when
no file for given type are present in the project.
Default is to execute sensor whatever are the available file types.onlyOnFileType
in interface SensorDescriptor
public DefaultSensorDescriptor createIssuesForRuleRepository(String... repositoryKey)
SensorDescriptor
Sensor
create issues for. Used by the platform to skip execution of the Sensor
when
no rule is activated for the given repository.createIssuesForRuleRepository
in interface SensorDescriptor
public DefaultSensorDescriptor createIssuesForRuleRepositories(String... repositoryKeys)
SensorDescriptor
Sensor
create issues for. Used by the platform to skip execution of the Sensor
when
no rule is activated for the given repositories.createIssuesForRuleRepositories
in interface SensorDescriptor
public DefaultSensorDescriptor requireProperty(String... propertyKey)
SensorDescriptor
Sensor
depends on. Used by the platform to skip execution of the Sensor
when
property is not set.requireProperty
in interface SensorDescriptor
public DefaultSensorDescriptor requireProperties(String... propertyKeys)
SensorDescriptor
Sensor
depends on. Used by the platform to skip execution of the Sensor
when
property is not set.requireProperties
in interface SensorDescriptor
Copyright © 2009–2016 SonarSource. All rights reserved.