本文整理了Java中org.sonar.api.config.Configuration.getDouble()
方法的一些代码示例,展示了Configuration.getDouble()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.getDouble()
方法的具体详情如下:
包路径:org.sonar.api.config.Configuration
类名称:Configuration
方法名:getDouble
[英]Effective value as Double.
[中]
代码示例来源:origin: SonarSource/sonarqube
@Override protected void processFile(InputFile inputFile, SensorContext context, RuleKey ruleKey, String languageKey) {
NewIssue newIssue = context.newIssue()
.forRule(ruleKey)
.gap(settings.getDouble(EFFORT_TO_FIX_PROPERTY).orElse(0.0));
newIssue.at(newIssue.newLocation()
.on(inputFile)
.message("This issue is generated on each file"))
.save();
}
}
代码示例来源:origin: org.sonarsource.sonarqube/sonar-xoo-plugin
@Override protected void processFile(InputFile inputFile, SensorContext context, RuleKey ruleKey, String languageKey) {
NewIssue newIssue = context.newIssue()
.forRule(ruleKey)
.gap(settings.getDouble(EFFORT_TO_FIX_PROPERTY).orElse(0.0));
newIssue.at(newIssue.newLocation()
.on(inputFile)
.message("This issue is generated on each file"))
.save();
}
}
内容来源于网络,如有侵权,请联系作者删除!