Aaronontheweb / EvilRoslynAnalyzers

Has your boss gone insane and banned LINQ at work? Why stop there - use this Roslyn Analyzer to ban extension methods altogether!
https://www.reddit.com/r/dotnet/comments/1c4hz1z/linq_forbidden/
Apache License 2.0
31 stars 2 forks source link

Feature idea: Ban using var #26

Closed TenCoKaciStromy closed 4 months ago

TenCoKaciStromy commented 4 months ago

The evolution of C# is too fast. Some of the new features even reduce the LOC and removes whole level of pyramid of enterprise code (also know as pyramid of doom). That damages quartal bonuses based on newly writen LOC. The "flat" using statement is of them.

Wrong:

using var writer = new StreamWriter(...);

Correct:

using (var writer = new ...)
{
   ...
}
Aaronontheweb commented 4 months ago

Resolved, valiantly, via #30