• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java SensorDescriptor类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.sonar.api.batch.sensor.SensorDescriptor的典型用法代码示例。如果您正苦于以下问题:Java SensorDescriptor类的具体用法?Java SensorDescriptor怎么用?Java SensorDescriptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SensorDescriptor类属于org.sonar.api.batch.sensor包,在下文中一共展示了SensorDescriptor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
 
开发者ID:antowski,项目名称:sonar-onec,代码行数:8,代码来源:OneCSensor.java


示例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);
}
 
开发者ID:racodond,项目名称:sonar-css-plugin,代码行数:8,代码来源:CssAnalyzerSensor.java


示例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);
}
 
开发者ID:racodond,项目名称:sonar-css-plugin,代码行数:8,代码来源:LessAnalyzerSensor.java


示例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);
}
 
开发者ID:racodond,项目名称:sonar-css-plugin,代码行数:8,代码来源:ScssAnalyzerSensor.java


示例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());
}
 
开发者ID:lequal,项目名称:sonar-frama-c-plugin,代码行数:8,代码来源:FramaCMetricsSensorTest.java


示例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);
}
 
开发者ID:sonar-perl,项目名称:sonar-perl,代码行数:8,代码来源:GlobalSensor.java


示例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);
}
 
开发者ID:sonar-perl,项目名称:sonar-perl,代码行数:8,代码来源:TestHarnessLoaderSensor.java


示例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);
}
 
开发者ID:silverbulleters,项目名称:sonar-gherkin,代码行数:8,代码来源:GherkinSquidSensor.java


示例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);
}
 
开发者ID:racodond,项目名称:sonar-gherkin-plugin,代码行数:8,代码来源:GherkinSquidSensor.java


示例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);
}
 
开发者ID:iwarapter,项目名称:sonar-puppet,代码行数:8,代码来源:PuppetSquidSensor.java


示例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);
}
 
开发者ID:racodond,项目名称:sonar-jproperties-plugin,代码行数:8,代码来源:JavaPropertiesSquidSensor.java


示例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);
}
 
开发者ID:racodond,项目名称:sonar-json-plugin,代码行数:8,代码来源:JSONSquidSensor.java


示例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");
}
 
开发者ID:economicmodeling,项目名称:sonar-d-plugin,代码行数:8,代码来源:DScannerSensor.java


示例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);
}
 
开发者ID:SonarQubeCommunity,项目名称:sonar-lua,代码行数:8,代码来源:CoberturaSensor.java


示例16: describe

import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor) {
  descriptor
    .name("Lua")
    .onlyOnFileType(InputFile.Type.MAIN)
    .onlyOnLanguage(Lua.KEY);
}
 
开发者ID:SonarQubeCommunity,项目名称:sonar-lua,代码行数:8,代码来源:LuaSquidSensor.java


示例17: describe

import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(SensorDescriptor descriptor) {
  descriptor
    .name(WebConstants.LANGUAGE_NAME)
    .onlyOnFileType(InputFile.Type.MAIN)
    .onlyOnLanguage(WebConstants.LANGUAGE_KEY);
}
 
开发者ID:SonarSource,项目名称:sonar-web,代码行数:8,代码来源:WebSensor.java


示例18: describe

import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public final void describe(final SensorDescriptor descriptor) {
	descriptor.name("Package Analyzer Sensor (" + language + ")");
	descriptor.onlyOnLanguage(language);
	descriptor.createIssuesForRuleRepository(BaseRules.getRepositoryKey(language));
}
 
开发者ID:willemsrb,项目名称:sonar-packageanalyzer-plugin,代码行数:7,代码来源:AbstractSensor.java


示例19: describe

import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
public void describe(final SensorDescriptor descriptor) {
	descriptor.onlyOnLanguage(PowershellLanguage.KEY).name(this.getClass().getSimpleName());
}
 
开发者ID:gretard,项目名称:sonar-ps-plugin,代码行数:4,代码来源:ScriptAnalyzerSensor.java


示例20: describe

import org.sonar.api.batch.sensor.SensorDescriptor; //导入依赖的package包/类
@Override
public void describe(final SensorDescriptor descriptor) {
	descriptor.onlyOnLanguage(PowershellLanguage.KEY).name(this.getClass().getSimpleName());
}
 
开发者ID:gretard,项目名称:sonar-ps-plugin,代码行数:5,代码来源:TokenizerSensor.java



注:本文中的org.sonar.api.batch.sensor.SensorDescriptor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Gizmo类代码示例发布时间:2022-05-21
下一篇:
Java DefaultHighlightingConfiguration类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap