‘SuppressMessage’ for a whole namespace
Suppression of a code analysis warning for a namespace and all its descendant symbols is possible since Visual Studio 2019: [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage( “Microsoft.Naming”, “CA1707:IdentifiersShouldNotContainUnderscores”, Justification = “Test methods require underscores for readability.” Scope = “namespaceanddescendants”, Target = “Company.Product.Tests”)] Scope – The target on which the warning is being suppressed. If the target is not specified, … Read more