No severity rules in sonarlint from sonarqube server

508 views
Skip to first unread message

earrp....@gmail.com

unread,
Jun 24, 2016, 8:12:33 AM6/24/16
to SonarLint
I have installed SonarLint for Visual Studio and connect to our SonarQube server. I bind it (and even updated it). It seems to work but when I compare the settings in Visual Studio to the SonarQube settings I see that the severity is not the same!? So I work connected but it seems that SonarLint is not using the severity from Rules set on our SonarQube server. When developers have different severities when working in Visual Studio compared to the SonarQube server it, of course, wont work. Any suggestions how this is possible?

Tamas Vajk

unread,
Jun 24, 2016, 8:44:12 AM6/24/16
to earrp....@gmail.com, SonarLint
Hello,

I'm not sure I completely understand your issue. However, I can confirm that severities configured on SQ side are not taken into account in SonarLint for Visual Studio (connected mode). In VS, we treat all issues as warnings. The reason for this is that
  • we don't want to break the build inside VS, while if a blocker or critical issue was detected that would most probably be mapped to a VS error,
  • in SQ there are 5 severity levels, while in VS there are 3 (+ issues can be faded).
Breaking the build is only acceptable if there are absolutely no false positives reported. While we constantly aim at this, we are not confident enough to say there are no false positives. The severity level mapping could be done, and will come at one point.

Regards,
Tamas

Tamas VAJK | SonarSource
Language Team

On 24 June 2016 at 14:12, <earrp....@gmail.com> wrote:
I have installed SonarLint for Visual Studio and connect to our SonarQube server. I bind it (and even updated it). It seems to work but when I compare the settings in Visual Studio to the SonarQube settings I see that the severity is not the same!? So I work connected but it seems that SonarLint is not using the severity from Rules set on our SonarQube server. When developers have different severities when working in Visual Studio compared to the SonarQube server it, of course, wont work. Any suggestions how this is possible?

--
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/9db74822-b4ee-4b65-9951-cd503464fad5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages