Sonar Lint not in sync with server rules

拥有回忆 提交于 2019-12-20 02:56:35

问题


Sonar Lint 2.0, It's connected to my own Sonar Qube server with no issues reported by the plugin. The issue is that it is not in sync with my server rules. Found those mentioned in the doc for Java but they also seemed not to be all. I wonder if these java rule list are used only when it's not connected to any server only.

Does it have a restriction of what rules to use or synchronize when using a remote server?

What exactly we can do to make it synch if it is possible.

Plateform: Java
SonarQube Server: Version 5.6+
Sonar Lint: Version 2.0

回答1:


The problem is that:

  1. SonarQube Server supports external plugins like PMD, FindBug, and CheckStyle.
  2. SonarLint management has decided not to support any external plugin, so you have only support of Sonar bug rules here.

Solution:

What we can do is that we can export the bug rules file from SonaQube Server and link it with the installed external plugins (PMD, FindBug, CheckStyle) so they can prompt you issues which Sonarlint is not able to show alone.



来源:https://stackoverflow.com/questions/43361803/sonar-lint-not-in-sync-with-server-rules

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