SonarLint for VS Code 3.20 - Walkthrough for new users, MISRA C++ 2023 rules

Hello VS Code users,

the latest version of SonarLint introduces a walkthrough to help those of you that recently installed the plugin to make the best out of it. The walkthrough covers the basic features of SonarLint, and specifically, it shows how to:

  • see issues in your code
  • learn more about those issues and fix them
  • synchronize the analysis configuration with other contributors
  • diagnose problems and share feedback with us

The walkthrough will be automatically displayed to those of you installing SonarLint for the first time, and you can manually open it anytime from the command palette: search “Welcome Open Walkthrough…” and then select “Welcome to SonarLint!

In this release, we’ve also added plenty of new MISRA C++ 2023 rules for your mission-critical C++ projects. Keep in mind that those rules are not available yet in SonarQube, they’ll be added in the next version. For the time being, you can activate those rules only if you use SonarLint in standalone mode, using the Rules menu from the SonarLint toolbar:

For our C++ users, we’ve also improved our analysis to detect more tricky bugs:

  • We’ve added rule S6655: Variables should not be accessed outside of their scope
  • We’ve improved the detection capability for rule: S5553: Immediately dangling references and pointers should not be created

We’ve also improved the accuracy of our analysis in Python and Java; you can see more in the release notes.