6
votes

I have activated the connected mode in the configuration panel. Our SonarQube (version 5.6.5) has a default quality profile. In the configuration panel, I have chosen a project, for which there is no explicit defined quality profile. Thus the default profile is activated. The SonarQube finds issues for this project. However, the SonarLint finds nothing. I have deactivated the connected mode. Then it finds some issues.

Could it be that the SonarLint does not pick up the default profile correctly?

IntelliJ Idea version 2017.1.2 SonarLint version 2.9.0.1816

Thanks.

1
An example: SonarQube reports lines, which are more than 120 chars. SonarLint does not report this issue. - ilhami visne
Is the issue in SonarQube resolved, i.e. marked as won't fix or false positive? If that's the case, it will be hidden in SonarLint. - Duarte Meneses
No. Issue is not resolved or marked. Actually, I have had just committed my changes and there was a few issues in my changes, which are not reported by my sonarlint. - ilhami visne
What is the rule that is not reported in SonarLint? Third party plugins not developped by SonarSource are not supported by SonarLint, so their rules won't appear in it. - Duarte Meneses
One rule is the Check that method/constructor/catch/foreach parameters are final By the way, this rule seems to be deprecated but still reported by SonarQube. Another is Operator Wrap like '&&' should be on a new line - ilhami visne

1 Answers

0
votes

I'm running IntelliJ Idea 2017.2 and had a similar issue with the sonarlint plugin version 3.3.

When using 3.2.0 available at https://plugins.jetbrains.com/plugin/7973-sonarlint it worked for me. You can download the plugin at the given URL and unpack the archive in your $HOME/IntelliJIdea<VERSION>/config/plugins folder.