How to exclude sonar lint warnings from - build settings (Treat warnings as error) in project (visual studio)

Hello All,

I am using sonar lint for visual studio 2015. I have many projects which are having build settings as Treat warnings as error.

Because of above settings due to all existing issues that specific projects build is failing.

I can’t fix all existing sonar issues in one go so I just want to exclude sonar warnings from this settings.

Is there any option available to do this?

Any help will be highly appreciated.

Thanks,
Ganesh

1 Like

Hi @ganeshmate333, you could use <WarningsNotAsErrors>SA1234</WarningsNotAsErrors> in your project file; it will not promote the specified rule keys to errors. The downside is that you would need to specify all rule keys there…

1 Like