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 `IEnumerable` #21

Open alexeyzimarev opened 4 months ago

alexeyzimarev commented 4 months ago

Using IEnumerable can cause repeated enumerations, so ban functions returning IEnumerable.

Aaronontheweb commented 4 months ago

Related: https://github.com/Aaronontheweb/EvilRoslynAnalyzers/issues/19 - looks like we should ban IEnumerator while we're at it. for loops with mutable counter variables are the only corporate-approved way to iterate.