I am using FxCop and StyleCop for my projects as well as GlobalSuppressions.cs to suppress some rules. Some projects have changed a lot and some exclusion I did in the past don't apply anymore. The GlobalSuppressions.cs haven't been cleaned up of those exclusions. Is there a tool which can automatically clean up GlobalSuppressions.cs?
Asked
Active
Viewed 634 times
4
-
1I am pretty sure there is not any tool like that. Why not just clean it by hand? – lontivero Oct 23 '11 at 22:15
-
I have too many of those files. Cleaning them up is This is too tedious. – Martin Oct 24 '11 at 04:02
-
1I understand. Anyway, using a powerful text editor that allows regular expressions and perform the same action in more that just one file at a time you could do it. Vim or Notepad++ could help. What do you think? – lontivero Oct 24 '11 at 04:50
1 Answers
1
There is no such tool available. The stand-alone FxCop UI tool can help you detect which suppressions are no longer necessary, but there's nothing available for removing the related SuppressMessage attributes from your source code.

Nicole Calinoiu
- 20,843
- 2
- 44
- 49