EvilRoslynAnalyzers
EvilRoslynAnalyzers copied to clipboard
Has your boss gone insane and banned LINQ at work? Why stop there - use this Roslyn Analyzer to ban extension methods altogether!
Evil Roslyn Analyzers
Enterprise-approved insane C# Roslyn Analyzers under the motto: "don't let productivity triumph over orthodoxy."
-
NoExtensionMethods
- especially LINQ. If classes were supposed to have these methods, they would have implemented via inheritance obviously. -
NoVarDeclarations
- thevar
keyword is dangerous; we should all write C# with explicit types in every expression, like a 1990s Java program. -
NoAndOperators
- disallow usage of the&&
operator, instead you must be explicit by ruling falsehood.