Hello Visual Studio users,
with this new release, SonarLint for Visual Studio is now able to synchronize the file or directory inclusions and exclusions configured for your project in SonarQube and in SonarCloud, and to apply those to the local analysis.
This will help you focus the analysis on the source code that matters to you, for example by excluding the analysis on third-party code or source files generated by a tool.
In order to benefit from this new feature, you simply need to update SonarLint to the latest versions and ensure that your local solution is linked to a SonarQube or SonarCloud project.
Please note that we have a few limitations (more details in our documentation), for example:
- only patterns beginning with **/ are supported for now (e.g. **/*.cpp, **/directory/* or **/directory/file.cpp )
- Multicriteria and Test exclusions are not yet supported
Finally as you see, this feature applies to C and C++ but not to your .NET solutions, the reason being that we need to implement a different and specific solution for .NET - we’ll be working on that soon!