Nothing pisses me off more than those stylistic warnings. I have my own style that makes sense to me and my coworkers and we follow strictly, and we're not going to go refactor our whole codebase every time Micro$lop adds new syntactic sugar to C#. I hate languages that try to impose their own style on me, and integrating that into the compiler at the same level as real warnings about potential dangers is offensive.
However, those warnings get suppressed, not ignored.
View all comments
Show parent comment
4
u/raunchyfartbomb 3d ago
Oh, you used a ternary instead of an if? That’s warning because for some reason the new visual studio doesn’t like it.
Your using “new X()” instead of “new()”? Gtfo
Your extension methods for IServiceProvider don’t exist within a project named “System”? (IDE0130)
Some warnings are noise.