Sonar Lint not in sync with server rules(Sonar Lint 与服务器规则不同步)
问题描述
Sonar Lint 2.0,它连接到我自己的 Sonar Qube 服务器,插件没有报告任何问题.问题是它与我的服务器规则不同步.找到了 Java 文档中提到的那些,但它们似乎也不是全部.我想知道这些java规则列表是否仅在未连接到任何服务器时才使用.
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
推荐答案
问题是:
- SonarQube 服务器支持 PMD、FindBug 和 CheckStyle 等外部插件.
- SonarLint 管理层已决定不支持任何外部插件,因此您在此处仅支持 Sonar 错误规则.
- SonarQube Server supports external plugins like PMD, FindBug, and CheckStyle.
- SonarLint management has decided not to support any external plugin, so you have only support of Sonar bug rules here.
解决方案:
我们可以做的是,我们可以从 SonaQube 服务器导出错误规则文件并将其与已安装的外部插件(PMD、FindBug、CheckStyle)链接,以便它们可以提示您 Sonarlint 无法单独显示的问题.
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.
这篇关于Sonar Lint 与服务器规则不同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Sonar Lint 与服务器规则不同步
基础教程推荐
- 降序排序:Java Map 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01