SonarLint not getting all issues from Sonarqube remote server

4,638 views
Skip to first unread message

jesr...@gmail.com

unread,
Sep 15, 2016, 4:33:23 AM9/15/16
to SonarLint
Hi, 
I've just installed Sonarlint (2.3.2) with Intellij (Idea 2016.2.4) and It's not working at 100%, I'll try to explain behaviors:
  1. First of all I've created a simple maven (ear) project, I've analysed it with sonarqube and I got a plenty of issues (minor, major, critical, etc).
  2. I've installed and setup SonarLint for Intellij Idea and binding the plugin and the project with my Sonarqube server (Test Connection works perfect).
  3. I've launched the analysis (current file or opened files) and I'm just getting some of the issues from the server, not all of them. Firstly I was thinking that I was receiving only major and critycal but It's not that way, It's very weird...
  4. For more info, I've also tested Sonarqube Community Plugin (just the remote Analysis) and It's getting all issues so the problem it's not in the server...
What can I do?
If you need more info just ping me!

jesr...@gmail.com

unread,
Sep 15, 2016, 4:37:07 AM9/15/16
to SonarLint, jesr...@gmail.com
I forgot to add more info:

  • I've also tested with some parameters (see the picture). But nothing happens...

Julien HENRY

unread,
Sep 15, 2016, 4:57:10 AM9/15/16
to SonarLint, jesr...@gmail.com
Hi,

What are the rules you are missing in your IDE? Please note that SonarLint will only execute rules from SonarSource analyzers (for java, the rule key is usually squid:xxxxx). Other 3rd party analyzers (PMD, Findbugs, Checkstyle) are not supported.

++

Julien

jesr...@gmail.com

unread,
Sep 15, 2016, 6:04:41 AM9/15/16
to SonarLint, jesr...@gmail.com
That's right!, I'm missing all non squid:xxxxx issues :(
Oh God, does it mean that coverage level will never be notified?
Is there a way to get all issues instead of issues created by SonarSource?

Regards,
J.R

Julien HENRY

unread,
Sep 15, 2016, 9:00:36 AM9/15/16
to SonarLint, jesr...@gmail.com
If think you miss some understanding of what SonarLint do: it is not a tool that fetch issues from the SonarQube server to display them on your code. The tool actually execute code analyzers on your code.

There is already a thread in this group explaining why we currently support only our home made analyzers.

Regarding code coverage (I think you are talking about the "second level" issue that is created if coverage level is under a threshold), this is not doable to compute it on the fly, not mentioning we have little knowledge in the IDE of what is a test (JUnit ? TestNG? UT / IT ?), how to run it, ... This would probably requires a lot of manual configuration.

BTW developers can already use tools like JaCoCo plugins to check coverage locally in their IDE, so we don't think there is a real need.

++

jesr...@gmail.com

unread,
Sep 15, 2016, 9:20:55 AM9/15/16
to SonarLint, jesr...@gmail.com
Thank you Julien, 
It's a great info about SonarLint that helps me a lot :)

Regards

zarei....@gmail.com

unread,
Jun 19, 2017, 5:57:17 AM6/19/17
to SonarLint, jesr...@gmail.com
So how is the status today, If I may ask?
How we can see the same issues asin the SonarQube Server? Is there any way?

/BR
Kambiz

janos....@sonarsource.com

unread,
Jun 20, 2017, 5:50:32 AM6/20/17
to SonarLint, jesr...@gmail.com, zarei....@gmail.com
Hi Kambiz,

I'm not sure what status you're asking about.

As for seeing the same issues as in SonarQube, I think the previous messages answer it.

If you have a specific question that is not already answered in this thread, please clarify.

Janos

Kambiz Zarei

unread,
Jun 20, 2017, 8:24:05 AM6/20/17
to SonarLint, janos....@sonarsource.com, jesr...@gmail.com
Hi,
Thanks for the feedback,

Unfortunately due to this limitation with your product, and since you are not willing to find a way to integrate PMD/CheckStyle/FindBugs into your product, I have to use Eclipse where SonarQube does this very smoothly and I can see the same error as in my Sonar server.
But I cannot use IntelliJ the same way, since the SonarQube community doesn't work well there. So I've tried your product but it doesn't show me all the errors.

As you (and many others) can see there are a lot of requests for this integration. Then just do it, why always push this back to people again?
 
/BR
Kambiz

--
You received this message because you are subscribed to a topic in the Google Groups "SonarLint" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarlint/24zs0kDXk1k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/5367850a-6d3a-4fef-a4da-34e941c257a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages