Programming language you’re coding in: C# … also JS/TS, C++
Is connected mode used: Yes
Connected to SonarCloud or SonarQube (and which version): SonarQube 8.9.10
And a thorough description of the problem / question:
We have been running SQ since 6.xx. Is going to update to LTS 9.xx in a few weeks.
We dropped using connected mode because of the project file instrumentation. But are trying now after Sonarlint 7.0/7.1.
We am seeing much of what Wilfried are seeing; but created a new topic, to keep them apart.
So far i have only tried using it for our C# solution. what I see:
on the server we use the Sonarway ruleset; is that why we see codesmells for the new rules introduced with Sonarlint 7.0/7.1 when connected?
On our server we have filtered unittests and integration test away; but codesmells for some of the directories appears when connected
There are a bunch of codesmells missing compared to the server; I have not figured the pattern out so far.
on the server we use the Sonarway ruleset; is that why we see codesmells for the new rules introduced with Sonarlint 7.0/7.1 when connected?
Yes. Any new C# rules that are not known to the connected SonarQube server will be executed in the IDE if the new rule is enabled by default (i.e. if it is in Sonar Way in the version of Sonar Qube in which it was added).
As a workaround, you can manually disable any new C#/VB.NET rules that you don’t want to run using a normal .editorconfig file.
On our server we have filtered unittests and integration test away; but codesmells for some of the directories appears when connected
Which properties are you setting on the server to filter the unit tests and integration? Not all server-side properties are supported - see the docs for more information.
There are a bunch of codesmells missing compared to the server; I have not figured the pattern out so far.
Is it the case that some rules are not producing any issues in the IDE (e.g. you are only seeing S100s on the server), or that you are seeing different issues for the same rule, or both?
Some types of rule such as taint rules are not executed locally in the IDE due to technical limitations. See this page for more information.
Also, if the IDE is running a newer version of the rules then it is possible that the implementation of the rule has changed so that the results raised are different from the server (e.g. the implementation might have been changed to reduce the number of false positives).