SonaLint for VS Code does not show custom Apex issues

Please provide

  • Operating system: Windows
  • SonarLint plugin version: v3.13.0
  • Programming language you’re coding in: APEX
  • Is connected mode used: Yes
    • Connected to SonarCloud or SonarQube (and which version): Conntected to SonarQube version 8.9.6

And a thorough description of the problem / question: The SonarLint for VS Code is not showing issues raised by SonarQube in VS Code. We have defined some custom rules to identify issues in APEX. These issues I can see in SonarQube, but they are not displayed in VS Code.

SonarLint will only run rules from SonarSource analyzers including custom rules extending SonarSource analyzers .

Since there’s no SonarSource API for writing custom APEX rules, these issues won’t be available in SonarLint.

And, your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.9.6 → 9.9 → 10.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

1 Like