我做了什么:在本地安装了SonarQube 5.6.6,添加了checkstyle-sonar-plugin-3.6.1,从我的Eclipse Neon2连接到它 . 然后在Sonar中创建了一个项目(通过mvn:clean install和sonar:sonar) . eclipse项目现在绑定到Sonar项目 .
会发生什么:如果有任何违规行为,它会在声纳中报告 .
我想要的:一些违规行为
"Abbreviation in name 'MyAPP' must contain no more than '3' consecutive capital letters."
在Eclipse中没有表现为波浪线 .
有什么帮助吗?
1 回答
SonarLint不支持第三方分析器,例如CheckStyle插件 . 它只支持SonarSource分析仪(SonarJS,SonarJava,..) .
更多信息:http://www.sonarlint.org/eclipse/index.html#FAQ