Find struct member that could be readonly

Proprietary

Detect struct methods and properties that don't modify state and could be marked readonly to prevent defensive copies.

OpenRewrite.Recipes.CSharp.CodeQuality.Style.FindReadOnlyStructMembers
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Style.FindReadOnlyStructMembers

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