Disable SonarLint warning for specific files

Hey guys,
I’m using Visual Studio 2022 with C++. How can I disable the SonarLint warnings for specific cpp files?
The only setting I found is to disable SonarLint for the whole project.

Hello @trungkientran,
welcome to the Sonar Community!
Excluding specific files/folders from analysis is not currently possible in SonarLint for Visual Studio, and there is already a feature request open in this forum, feel free to upvote it.
To better understand your request, may I ask why you’d like to exclude some cpp files?

1 Like

I’m using a C++ library (Dear ImGui) and SonarLint shows thousand of warning about it.
So I need a way to exclude this library’s source file from the analysis :smiley:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.