EvilRoslynAnalyzers icon indicating copy to clipboard operation
EvilRoslynAnalyzers copied to clipboard

Feature idea [CodeFix provider]: all fields, methods, and properties must be wrapped into appropriately named `#region`s

Open Aaronontheweb opened this issue 1 year ago • 2 comments

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.

Aaronontheweb avatar Apr 16 '24 13:04 Aaronontheweb

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

ardalis avatar Apr 16 '24 15:04 ardalis

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

Aaronontheweb avatar Apr 16 '24 16:04 Aaronontheweb