Hello Claus,
I’m part of the team working on the JS/TS analyzer. Rule S2933 depends on the TypeScript type checker used in its implementation. For performance reasons, we disable this in the SonarQube for IDE context when projects files are above a certain threshold. You should see the following logs in that case.
The result is that some rules lose in precision.
You can edit this parameter with sonar.javascript.sonarlint.typechecking.maxfiles
, which is set by default to 20k.
This behaviour is not present in the scanner context, that is why you would always see the issues on SonarQube Cloud.
However, the difference in behaviour between IntelliJ and WebStorm is indeed confusing. Is it possible that you fetch files in a different fashion, @nicolas.quinquenel ?