【发布时间】:2018-11-09 05:15:14
【问题描述】:
我正在学习根据 SonarQube 网站上的步骤编写自定义规则。 https://docs.sonarqube.org/display/PLUG/Writing+Custom+Java+Rules+101 然后我将规则放入 SonarQube。但是当我分析示例代码时它不起作用。 我已经在 SonarQube 服务器中看到了规则。 SonarQube server shows the rule 但它没有分析显示错误。 enter image description here 我的示例代码如下:
public class Example {
void foo(){
}
int bar(int i){
return 0;
}
}
我的 SonarQube 版本是 7.0。
【问题讨论】:
-
那么您的问题到底是什么?您将不得不提供更多信息让人们了解问题
-
您是否使用这些规则来编写您的规则? Writing+Custom+Java+Rules+101
-
我已经上传了图片,实际问题是规则无法生效,不知道怎么找原因。