Been a few years now since I've worked much in C# but these all seem like things that should be linting rules.
Can these be added as warnings to the compiler? Can you have custom lint/compiler warnings from the community like eslint?
Can these be added as warnings to the compiler? Can you have custom lint/compiler warnings from the community like eslint?
They are called “analyzers” in .net though