sonar Lint connected mode is not working

3,511 views
Skip to first unread message

material...@gmail.com

unread,
Jun 3, 2016, 5:52:43 AM6/3/16
to SonarLint
it is not even reporting the issues based on the quality profile which we configured in the sonar Qube i bind the projects from sonar lint to sonar qube with connected mode,but it never shows the issues or violations

Tamas Vajk

unread,
Jun 3, 2016, 6:29:12 AM6/3/16
to material...@gmail.com, SonarLint
Hello, 

You are not giving us enough information to investigate your issue. For example we have no idea which SonarLint you are using: Eclipse, IntelliJ or Visual Studio variant.
Also, you should include details, screenshots on the configuration you are using.

Regards,
Tamas

Tamas VAJK | SonarSource
Language Team

On 3 June 2016 at 11:52, <material...@gmail.com> wrote:
it is not even reporting the issues based on the quality profile which we configured in the sonar Qube i bind the projects from sonar lint to sonar qube with connected mode,but it never shows the issues or violations

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/a4106038-dfcf-4770-a00c-a6486c8fb8a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

goran.p...@gmail.com

unread,
Jul 21, 2016, 6:15:08 AM7/21/16
to SonarLint, material...@gmail.com
Same here, SonarLint for Eclipse does not working in connected mode. Eclipse is latest Neon, and SonarLint is 2.1.0. I can see many issues for connected project browsing sonarqube, but none is listed in Eclipse by SonarLint. I tried connecting/disconnecting server, and binding/unbinding project multiple times.
I also tried to turn on/off "Run sonarlint automatically" and run analysis manually but no issues are found and displayed by sonarlint on same java files on which I see multiple issues in sonarqube server.

Regards,
Goran Petanjek

Julien HENRY

unread,
Jul 21, 2016, 6:20:30 AM7/21/16
to goran.p...@gmail.com, SonarLint, material...@gmail.com
Hi,

What are the rules activated in your quality profile? SonarLint will only report issues coming from SonarSource analyzers. Not from PMD/Checkstyle/Findbugs rules.

++

Julien

goran.p...@gmail.com

unread,
Jul 21, 2016, 8:27:40 AM7/21/16
to SonarLint, goran.p...@gmail.com, material...@gmail.com
Hi,

Yes I think this is the issue. On server I have activated "Sonar way with Checkstyle", and only subset of issues are displayed in Eclipse on sonarlint not all that are visible on sonarqube server side. Probaly just sonar rules, not checkstyle.
Thank you for your answer, I'll wait until SonarLint supports all rules.

Regards,
Goran Petanjek

Julien HENRY

unread,
Jul 21, 2016, 8:42:38 AM7/21/16
to goran.p...@gmail.com, SonarLint, material...@gmail.com

2016-07-21 14:27 GMT+02:00 <goran.p...@gmail.com>:
Thank you for your answer, I'll wait until SonarLint supports all rules.

This is not in our plans to support third party analyzers like Checkstyle. If you want to run Checkstyle issues in Eclipse, there is already the Eclipse-CS plugin.

SonarLint is a plugin to benefit from SonarSource analyzers only. BTW our Java analyzer can be used as a replacement for nearly all Checkstyle rules:

++

Julien

goran.p...@gmail.com

unread,
Jul 21, 2016, 8:54:15 AM7/21/16
to SonarLint, goran.p...@gmail.com, material...@gmail.com
Hi,

OK, I'll switch to "Sonar way" profile on server.
Thanks again

maxamb...@gmail.com

unread,
Aug 30, 2016, 10:50:33 AM8/30/16
to SonarLint, goran.p...@gmail.com, material...@gmail.com
Hey, guys, did you solve this problem? I use sonarQube6.0 and sonarLint 2.2.1, and the same problem it was. What's more,I just choose the default Sonar way as quality profiles.So can you give me some suggestion,and I'll show my thanks to you.

在 2016年7月21日星期四 UTC+8下午8:54:15,goran.p...@gmail.com写道:

chris.r...@gmail.com

unread,
Jan 3, 2017, 4:42:57 PM1/3/17
to SonarLint, material...@gmail.com
It's too bad that SonarLint can't match 100% of the quality profile assigned to your project on SonarQube.  Did the old discontinued Eclipse plugin support that?

Freddy Mallet

unread,
Jan 4, 2017, 6:05:19 AM1/4/17
to chris.r...@gmail.com, SonarLint, material...@gmail.com
To prevent any misunderstanding @Chris: when using the connected mode with SonarLint for Eclipse/IntelliJ you're getting the same issues in SonarLint and in SonarQube as long as you're using the SonarSource's Code Analyzers. 

But indeed any other code analyzer is not supported in SonarLint.
Kind regards
Freddy

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
Freddy MALLET | SonarSource

chris.r...@gmail.com

unread,
Jan 4, 2017, 1:39:57 PM1/4/17
to SonarLint, chris.r...@gmail.com, material...@gmail.com
Understood.  However, I'm seeing one issue (Methods should not be empty (squid:S1186)) that shows up in SonarLint, but doesn't show up in SonarQube server for my project.  Fwiw, the project is built with gradle and is hierarchical.  The "methods should not be empty" issue appears in one of the child projects.  The root project has no Java code, but does contain the sonarqube configuration values in its gradle file.  On SonarQube, I'm also seeing several issues show up for child projects that don't show up in SonarLint.  Of course, that could be because  of SonarLint consuming only SonarSource code analyzers output.  In fact, I have 30 issues show up on SonarQube server and only 2 issues show up on SonarLint.

Freddy Mallet

unread,
Jan 8, 2017, 10:27:53 AM1/8/17
to chris.r...@gmail.com, SonarLint, material...@gmail.com
Hi Chris,

Would you be able to provide a sample gradle project to help us reproduce this behaviour locally ?
Thanks
Freddy


For more options, visit https://groups.google.com/d/optout.

alpe...@gmail.com

unread,
Jan 9, 2017, 12:47:15 AM1/9/17
to SonarLint, goran.p...@gmail.com, material...@gmail.com
Hello,

Yes I think this is the issue. On server I have activated "Sonar way with Checkstyle", and only subset of issues are displayed in Eclipse on sonarlint not all that are visible on SonarQube server side.


Just to clarify here, when Julien & Freddy mentioned that SonarLint doesn't support third party analyzers like Checkstyle but only own, note that here talk is about Analyzer and not profile.  It was same confusion for me initially and from my experience I see that sonar way profile doesn't have all rules supported by SonarLint (114 out of 373 for SonarQube version 5.6 ). In fact one should look for repository called "SonarQube" if you want to match issues in Eclipse with SonarQube server otherwise you will always see extra issues in eclipse not available on sonar server. So I suggest create new profile, add all rules from "SonarQube" repository and then use that profile.

 

Regards,
Alpesh
Reply all
Reply to author
Forward
0 new messages