Ok, as usual the msft docs are utterly useless for me. Here is my Q:
How can I make an analyzer using the CLI (dotnet 6.0 SDK on linux) and have it run when I dotnet build
other projects, and have it print warnings if the null forgiveness operator (!) is used. I do NOT use visual studio. Also how can I verify analyzers are even being loaded / initialized by dotnet build.
For context, we require a __unwrap<T>()
helper method, which checks at runtime that the object is indeed not null, instead of sacrificing safety. And this project here does not seem to work for me: https://github.com/tom-englert/Nullable.Extended#roslyn-analyzer