本文整理汇总了Java中org.sonar.api.batch.sensor.SensorDescriptor类的典型用法代码示例。如果您正苦于以下问题:Java SensorDescriptor类的具体用法?Java SensorDescriptor怎么用?Java SensorDescriptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SensorDescriptor类属于org.sonar.api.batch.sensor包,在下文中一共展示了SensorDescriptor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor) {
descriptor
.onlyOnLanguage(OneC.KEY)
.name("1C 7.7 sensor")
.onlyOnFileType(InputFile.Type.MAIN);
}
示例2: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor) {
descriptor
.onlyOnLanguage(CssLanguage.KEY)
.name("CSS Analyzer Sensor")
.onlyOnFileType(Type.MAIN);
}
示例3: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor) {
descriptor
.onlyOnLanguage(LessLanguage.KEY)
.name("Less Analyzer Sensor")
.onlyOnFileType(Type.MAIN);
}
示例4: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor) {
descriptor
.onlyOnLanguage(ScssLanguage.KEY)
.name("SCSS Analyzer Sensor")
.onlyOnFileType(Type.MAIN);
}
示例5: given_sensorDescriptor_when_describe_then_callSensorDescriptorName
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Test
public void given_sensorDescriptor_when_describe_then_callSensorDescriptorName() {
SensorDescriptor sensorDescriptor = Mockito.mock(SensorDescriptor.class);
FramaCMetricsSensor framaCMetricsSensor = new FramaCMetricsSensor();
framaCMetricsSensor.describe(sensorDescriptor);
verify(sensorDescriptor).name(FramaCMetricsSensor.class.getName());
}
示例6: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor) {
descriptor
.onlyOnLanguage(PerlLanguage.KEY)
.name("Perl Sensor")
.onlyOnFileType(Type.MAIN);
}
示例7: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor) {
descriptor
.onlyOnLanguage(PerlLanguage.KEY)
.name("Perl Test::Harness Sensor")
.onlyOnFileType(Type.TEST);
}
示例8: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor sensorDescriptor) {
sensorDescriptor
.name("Code Smell Anti-pattern Sensor")
.onlyOnLanguage("java")
.createIssuesForRuleRepository(CodeSmellsAntiPatternsRulesDefinition.REPOSITORY);
}
开发者ID:davidetaibi,项目名称:sonarqube-anti-patterns-code-smells,代码行数:8,代码来源:CodeSmellsAntiPatternsSensor.java
示例9: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor sensorDescriptor) {
sensorDescriptor
.onlyOnLanguage(GherkinLanguage.KEY)
.name("Gherkin Squid Sensor")
.onlyOnFileType(InputFile.Type.MAIN);
}
示例10: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor) {
descriptor
.onlyOnLanguage(GherkinLanguage.KEY)
.name("Gherkin Squid Sensor")
.onlyOnFileType(Type.MAIN);
}
示例11: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor) {
descriptor
.onlyOnLanguage(Puppet.KEY)
.name("Puppet Squid Sensor")
.onlyOnFileType(InputFile.Type.MAIN);
}
示例12: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor) {
descriptor
.onlyOnLanguage(JavaPropertiesLanguage.KEY)
.name("Java Properties Squid Sensor")
.onlyOnFileType(Type.MAIN);
}
示例13: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor) {
descriptor
.onlyOnLanguage(JSONLanguage.KEY)
.name("JSON Squid Sensor")
.onlyOnFileType(Type.MAIN);
}
示例14: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor)
{
descriptor.onlyOnLanguage("d");
descriptor.name("D-Scanner sensor");
descriptor.createIssuesForRuleRepository("dscanner");
}
示例15: describe
import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor) {
descriptor
.name("Lua Cobertura")
.onlyOnFileType(InputFile.Type.MAIN)
.onlyOnLanguage(Lua.KEY);
}