SonarQube Java plugin custom rule

为君一笑 提交于 2019-12-11 02:42:42

问题


We have implemented a custom rule based on the BaseTreeVisitor in https://github.com/SonarSource/sonar-java/tree/master/java-checks/src/main/java/org/sonar/java/checks as described in http://docs.sonarqube.org/display/SONAR/Extending+Coding+Rules. We are able to deploy it and it appears as a new plugin in Sonar, but we couldn't find a way to add it to any of the quality profiles.

Is this the correct way to implement a custom rule? If yes, how to deploy & use it in a profile properly?


回答1:


It is the correct way to implement a custom rule. You can see your rule if you filter on inactive rules.



来源:https://stackoverflow.com/questions/22455209/sonarqube-java-plugin-custom-rule

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!