Find structs without StructLayout attribute

Proprietary

Detect struct declarations without [StructLayout] attribute. Adding [StructLayout(LayoutKind.Auto)] allows the CLR to optimize field layout for better memory usage.

OpenRewrite.Recipes.CSharp.CodeQuality.Performance.FindMissingStructLayout
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Performance.FindMissingStructLayout

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.