Open BinaryTENSHi opened 1 week ago
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Describe the bug
The
NUnit.Analyzers
project provides a suppressor that suppresses theCS8616
error when a non-nullable field is being initialized via aSetUp
orOneTimeSetUp
method. See: https://docs.nunit.org/articles/nunit-analyzers/NUnit3002.htmlHaving
EnforceCodeStyleInBuild
set totrue
seems to not run or ignore this suppressor anddotnet format --verify-no-changes
errors out with aCS8616
error.To Reproduce
I have created a minimal reproducible example here: https://github.com/BinaryTENSHi/dotnet-format-nunit-suppress
Further technical details
dotnet --info