You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having EnforceCodeStyleInBuild set to true seems to not run or ignore this suppressor and dotnet format --verify-no-changes errors out with a CS8616 error.
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
The text was updated successfully, but these errors were encountered: