# SonarLint and SonarQube LTS - rules aren't in sync

**URL:** <https://community.sonarsource.com/t/sonarlint-and-sonarqube-lts-rules-arent-in-sync/4213>\
**Category:** IntelliJ Platform\
**Tags:** intellij, sonarqube-ide\
**Created:** [November 13, 2018, 1:27pm UTC](https://community.sonarsource.com/t/sonarlint-and-sonarqube-lts-rules-arent-in-sync/4213 "2018-11-13T13:27:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![svf](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@svf](https://community.sonarsource.com/u/svf)\
**Post date:** [November 13, 2018, 1:27pm UTC](https://community.sonarsource.com/t/sonarlint-and-sonarqube-lts-rules-arent-in-sync/4213/1 "2018-11-13T13:27:45Z")

</div>

Hi,

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

Configuration:  
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 “\[1\][a-zA-Z0-9]_$", but for this profile they were changed to “Major” and "\[2\][A-Z][a-zA-Z0-9]_$” after activation. The binding was updated after that change.

Error:

```auto
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:

```auto
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]IntegrationTest.java'...
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.

* * *

1. a-z 

2. f

---

<div class="post-metadata">

**Author:** ![petermbauer](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/petermbauer/32/1757_2.png) [@petermbauer](https://community.sonarsource.com/u/petermbauer)\
**Post date:** [February 5, 2019, 4:48pm UTC](https://community.sonarsource.com/t/sonarlint-and-sonarqube-lts-rules-arent-in-sync/4213/2 "2019-02-05T16:48:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Julien\_HENRY](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/julien_henry/32/61_2.png) [@Julien\_HENRY](https://community.sonarsource.com/u/Julien_HENRY)\
**Post date:** [July 1, 2019, 2:17pm UTC](https://community.sonarsource.com/t/sonarlint-and-sonarqube-lts-rules-arent-in-sync/4213/4 "2019-07-01T14:17:56Z")

</div>

Hi @svf, are you from the same company as @petermbauer?

If yes, I think we can consider this is the same issue as [Rules deactivated in SonarQube EE but SonarLint applies them (Eclipse plugin)](https://community.sonarsource.com/t/rules-deactivated-in-sonarqube-ee-but-sonarlint-applies-them-eclipse-plugin/4337) (the quality profile is not correctly sync in SonarLint).

---

<div class="post-metadata">

**Author:** ![petermbauer](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/petermbauer/32/1757_2.png) [@petermbauer](https://community.sonarsource.com/u/petermbauer)\
**Post date:** [July 1, 2019, 2:36pm UTC](https://community.sonarsource.com/t/sonarlint-and-sonarqube-lts-rules-arent-in-sync/4213/5 "2019-07-01T14:36:07Z")

</div>

Works now for me with latest SonarLint an SonarQube 7.6 after setting the include folders in the Eclipse project as in [SonarLint findings different from SonarQube server](https://community.sonarsource.com/t/sonarlint-findings-different-from-sonarqube-server/11252/2)

thx,  
Peter

---

<div class="post-metadata">

**Author:** ![svf](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@svf](https://community.sonarsource.com/u/svf)\
**Post date:** [July 1, 2019, 5:42pm UTC](https://community.sonarsource.com/t/sonarlint-and-sonarqube-lts-rules-arent-in-sync/4213/6 "2019-07-01T17:42:42Z")

</div>

No, it seems that these issues are different

---

<div class="post-metadata">

**Author:** ![Julien\_HENRY](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/julien_henry/32/61_2.png) [@Julien\_HENRY](https://community.sonarsource.com/u/Julien_HENRY)\
**Post date:** [January 10, 2020, 3:22pm UTC](https://community.sonarsource.com/t/sonarlint-and-sonarqube-lts-rules-arent-in-sync/4213/7 "2020-01-10T15:22:20Z")

</div>

> [@svf](#):
>
> Analysing ‘[censored]IntegrationTest.java’…

To me the issue was that the source file was considered as a test file, so no issues reported by SonarLint.

---

<div class="post-metadata">

**Author:** ![Julien\_HENRY](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/julien_henry/32/61_2.png) [@Julien\_HENRY](https://community.sonarsource.com/u/Julien_HENRY)\
**Post date:** [January 10, 2020, 3:22pm UTC](https://community.sonarsource.com/t/sonarlint-and-sonarqube-lts-rules-arent-in-sync/4213/8 "2020-01-10T15:22:32Z")

</div>

Closing this thread due to lack of activity.

Feel free to open a new thread if you still have an issue/question.

---

<div class="post-metadata">

**Author:** ![Julien\_HENRY](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/julien_henry/32/61_2.png) [@Julien\_HENRY](https://community.sonarsource.com/u/Julien_HENRY)\
**Post date:** [January 10, 2020, 3:22pm UTC](https://community.sonarsource.com/t/sonarlint-and-sonarqube-lts-rules-arent-in-sync/4213/9 "2020-01-10T15:22:35Z")

</div>


