SonarLint could not find Java “Code Smell” in connected mode… here is a solution to the problem.
SonarLint could not find Java “Code Smell” in connected mode
I tried using SonarLint plugin for IntelliJ in connected mode.
However, the remote rules seem to work for JavaScript files, but not Java files.
As you can see in the example above, even a simple rule: “lines longer than 120 characters” is removed by the SonarQube server found, but not found via the SonarLint IntelliJ plugin.
Do you know why not all rules are synchronized?
Solution
What is the key to the rules? As I understand it, SonarLint only supports the SonarSource analyzer (rules prefixed with squid
).
See also: https://groups.google.com/forum/#!topic/sonarlint/EmXINryXdos
SonarLint will only execute SonarSource
analyzers. PMD/Findbugs/Checkstyle engines are not supported in
SonarLint.