Search code examples
tfscode-analysissuppresssuppression

Is there a program to help manage error suppression in TFS?


I recently inherited a large solution containing a lot of suppressed messages in its code base.

Waiting to simply run across each of these messages one by one as I happen to touch parts of the code is a terrible way of handling all of these suppressed analysis errors.

While there is a small amount of suppressions that are considered valid (such as in auto-generated code files) most are needing to be fixed.

Is there some sort of plug-in or process through TFS that anyone can recommend as far as managing these code analysis issues in an efficient manner?


Solution

  • You can use the /property:WarningLevel=0 MSBuild argument to suppress all build warnings. Open build definition, go to Process -> 2.Build -> 5.Advanced -> MSBuild argument. Check my reply in this link: MSBuild Defintion - Suppress Warning Messages for Specific Solutions