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 [CodeFix provider]: all fields, methods, and properties must be wrapped into appropriately named `#region`s #12

Open Aaronontheweb opened 4 months ago

Aaronontheweb commented 4 months ago

Per Mark's suggestion on Twitter:

[Enforce] regions, but specifically by member type and visibility? Like “Constructors”, “Private Fields”, “Internal Methods” etc.

Bonus points for preventing use of plurals when there’s only one thing in a region.

ardalis commented 4 months ago

Nah, plurals all the time, and every single one is required in every .cs file regardless of whether the region block is empty.

Aaronontheweb commented 4 months ago

Nah, plurals all the time, and every single one is required in every .cs file regardless of whether the region block is empty.

That might make this a tad harder to implement but it's a worthy goal