SonatLint lists warnings even after they have been suppressed - how to stop this?

50 views
Skip to first unread message

haught...@googlemail.com

unread,
Jan 18, 2017, 8:09:17 AM1/18/17
to SonarLint

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 then 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?

This post is also on StackOverflow.

janos....@sonarsource.com

unread,
Jan 18, 2017, 8:41:09 AM1/18/17
to SonarLint, haught...@googlemail.com
Hi,


The SonarSource team monitors Stack Overflow tags, it's enough to post there. Let's close this thread.

Thanks,
Janos

Neil Haughton

unread,
Jan 18, 2017, 8:45:16 AM1/18/17
to janos....@sonarsource.com, SonarLint
Except that the website recommends Googlegroups for posts, and no-one has so far responded to Stackoverflow.
Reply all
Reply to author
Forward
0 new messages