Sonarqube同步错误 [英] Sonarqube synchronization error

查看:122
本文介绍了Sonarqube同步错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Java中为声纳创建了一个自定义规则. 规则已创建,我可以在sonarqube UI中看到它.

I have created a custom rule for sonarqube in Java. The rule is created and i can see that in the sonarqube UI.

现在的问题是,当我尝试从日食中检查该规则时.我收到错误消息: :同步问题,遇到了一些问题".

Now the problem is when i try to check that rule from eclipse. I am getting error: :Synchronization issue, has encountered some problem".

当我从eclipse中检查日志时,我得到了:

When I checked log from eclipse, i have this:

!ENTRY org.sonar.ide.eclipse.core 4 4 2016-04-18 10:02:36.641
!MESSAGE 
!STACK 0
java.lang.NullPointerException
    at org.sonar.ide.eclipse.wsclient.internal.SonarWSClientFacade.getUnresolvedRemoteIssuesRecursively(SonarWSClientFacade.java:170)
    at org.sonar.ide.eclipse.core.internal.remote.RemoteSourceCode.getRemoteIssuesRecursively(RemoteSourceCode.java:107)
    at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.doRefreshIssues(SynchronizeAllIssuesJob.java:131)
    at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.fetchRemoteIssues(SynchronizeAllIssuesJob.java:120)
    at org.sonar.ide.eclipse.core.internal.jobs.SynchronizeAllIssuesJob.run(SynchronizeAllIssuesJob.java:76)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

我将不胜感激.我也想知道是否有一种方法可以禁止某些Java文件使用我的自定义规则.我已经看到了像//nosonar@supress()这样的选项.请让我知道抑制某些Java文件的自定义规则的方法.

I would appreciate any help. Also I would like to know if there is a way to suppress my custom rule for some of the java file. I have seen the options like //nosonar and @supress(). Please let me know the way to suppress my custom rule for some java files.

推荐答案

似乎是版本问题. sonarqube eclipse插件不适用于sonarqube 5.4服务器. 如果您使用的是sonarqube 5.2+服务器.您必须使用sonarlint eclipse插件进行分析.

It Seems that this is a version issue. sonarqube eclipse plugin does not work with sonarqube 5.4 server. If you are using sonarqube 5.2+ server. you have to use sonarlint eclipse plugin for the analysis.

这篇关于Sonarqube同步错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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