本文整理汇总了Java中org.sonar.api.resources.Language类的典型用法代码示例。如果您正苦于以下问题:Java Language类的具体用法?Java Language怎么用?Java Language使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Language类属于org.sonar.api.resources包,在下文中一共展示了Language类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: define
import org.sonar.api.resources.Language; //导入依赖的package包/类
@Override
public void define(Context context) {
for (Language language : languages.all()) {
NewRepository repo = context
.createRepository(getRepositoryName(language.getKey()), language.getKey());
repo.setName("Coverage evolution");
repo.createRule(decreasingLineCoverageRule)
.setName("Line-coverage on files should not decrease")
.setMarkdownDescription("Reports if the line-coverage on a file has decreased.")
.setTags("bad-practice")
.setSeverity(Severity.BLOCKER)
;
repo.createRule(decreasingOverallLineCoverageRule)
.setName("Project-wide line-coverage should not decrease")
.setMarkdownDescription("Reports if the line-coverage on the project has decreased.")
.setTags("bad-practice")
.setSeverity(Severity.BLOCKER)
;
repo.done();
}
}
开发者ID:AmadeusITGroup,项目名称:sonar-coverage-evolution,代码行数:24,代码来源:CoverageRule.java
示例2: testLanguage
import org.sonar.api.resources.Language; //导入依赖的package包/类
private static Language testLanguage(String name) {
return new Language() {
@Override
public String getKey() {
return name;
}
@Override
public String getName() {
return name;
}
@Override
public String[] getFileSuffixes() {
return new String[0];
}
};
}
开发者ID:AmadeusITGroup,项目名称:sonar-coverage-evolution,代码行数:19,代码来源:CoverageRuleTest.java
示例3: getLanguage
import org.sonar.api.resources.Language; //导入依赖的package包/类
@Override
public Language getLanguage() {
return tanaguru;
}
开发者ID:Asqatasun,项目名称:Asqatasun-Sonar-Plugin,代码行数:5,代码来源:TanaguruCpdMapping.java
示例4: getLanguage
import org.sonar.api.resources.Language; //导入依赖的package包/类
@Override
public Language getLanguage() {
return language;
}
开发者ID:iwarapter,项目名称:sonar-puppet,代码行数:5,代码来源:PuppetCpdMapping.java
示例5: getLanguage
import org.sonar.api.resources.Language; //导入依赖的package包/类
public Language getLanguage() {
return language;
}
开发者ID:Ne0s,项目名称:sonar-plsql,代码行数:4,代码来源:PlSQLCpdMapping.java
示例6: getLanguage
import org.sonar.api.resources.Language; //导入依赖的package包/类
/**
* Returns the Apex language.
*
* @return the language.
*/
@Override
public Language getLanguage() {
return language;
}
开发者ID:fundacionjala,项目名称:enforce-sonarqube-plugin,代码行数:10,代码来源:ApexCpdMapping.java
注:本文中的org.sonar.api.resources.Language类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论