We're trying SonarLint with VS2015 Enterprise and have an irritating problem which could be a show-stopper unless we resolve it. Core i5 processor, 8GB memory, large SSD, Windows 7 Pro:
We have masses of legacy warnings of the same warning code (eg S1444). I can live with the existing code but want to catch them for future work, so I want to suppress the existing warnings but without messy pragmas in the code. So, I multi-select them all in the Error List screen and rt-click, then click In Suppression File. A GlobalSuppressions file is created in the appropriate projects and updated.
However the warnings continue to be displayed. I clean and rebuild the solution and the 'suppressed' warnings continue to be displayed, still with a suppression state of 'Active' (which I am guessing means 'not suppressed').
This means it is almost (or may actually be) impossible to eliminate old warnings so that new ones are clearly exposed, which is the whole point of the exercise.
Is this a bug or am I missing something?
Also I notice that sometimes the rt-click context menu includes Suppress-> and other times it doesn't. How does that work?
I can't reproduce the issue you are facing. I have created a
ConsoleApplication (C#)
and used the default code. I have then selected all issues, right-click and Suppress in Suppression File. I tried to rebuild, clean, restart VS and warnings no longer show up.Program.cs
GlobalSuppression.cs
I am using the latest SonarLint version (2.9.0.384). Could you create a simple repro case so I can work with it to find out what's happening?