SonarLint and SonarQube LTS - rules aren't in sync


(Sergey) #1


Rules aren’t in sync between SonalLint and SonarQube LTS.

  • versions used

SonarLint 4.0 under IntellijIDEA 2018.2.5
SonarQube 6.7.1 LTS

  • error observed

Non-default quality profile with activated rule squid:S00116 (Field names should comply with a naming convention).
The rule activated with Major severity and customized pattern. That is, default values for the rule are set to “Minor” and “^[a-z][a-zA-Z0-9]*", but for this profile they were changed to "Major" and "^[f][A-Z][a-zA-Z0-9]*” after activation. The binding was updated after that change.


public class A {
    private String member;

Expected result: SonarLlink issue generated after running SonarLint analysis.
Actual result: No issues generated. No any log entries.

Actual log looks like this:

Clearing all issues because binding was updated
Project 'com.[censored]-6.0' in server binding 'Internal SQ' updated
Using configuration of 'com.[censored]-6.0' in server 'Internal SQ'
Analysing '[censored]'...
Found 2 issues

Referenced issues are actual, but triggered by another rule. I expected to have 3 issues here.

Server-side analysis works fine in this changed rule for both methods (with publishing results to SQ server and without it)

  • steps to reproduce
  • Actiavte the rule in profile.
  • Change setting for activated rule
  • Update binding in IDEA
  • Run SonarLint analysis
  • potential workaround:
    Another review/approval iteration after running server-side analysis.

(Petermbauer) #2

Any news on that? No new version was released since Oct 2018 …