Sonar Lint与服务器规则不同步 [英] Sonar Lint not in sync with server rules

查看:1144
本文介绍了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

推荐答案

问题是:

  1. SonarQube Server支持外部插件,例如PMD,FindBug和CheckStyle.
  2. SonarLint管理层决定支持任何外部插件,因此您在此处仅支持Sonar错误规则.
  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.

解决方案:

我们能做的是,我们可以导出从SonaQube Server导出错误规则文件,并使用已安装的外部插件(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与服务器规则不同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆