Sonarlint does not detect all violations

Hi all!,

We have detected a problem with Sonarlint and the quality profile “Sonar way with Findbugs” in Sonarqube.

It seems that Sonarlint only detects some violations, but not all.

However, if I change the quality profile in my Sonarqube project (with Sonar Way), Sonarlint can detect more rules.

What’s going on?

Best regards!
Jorge

My environment:

  • Sonarqube 6.7.1
  • Sonarlint 4.1
  • IDE: Eclipse 2018-09

I believe this is because SonarLint only works with internal analyzers, those maintained by SonarSource, whether or not you’re connected to a SonarQube server. Findbugs, PMD, Checkstyle, etc., are considered external analyzers, and therefore not supported by SonarLint.

I’m having the same issue here with Java developers who think SonarLint = SonarQube. It doesn’t help that the SonarLint web site doesn’t make a clear distinction between what the plugin supports and what it doesn’t anymore.

SonarSource, feel free to correct me if I’m wrong. My knowledge is based on trial-and-error combined with reading old posts on the subject.

2 Likes