Find struct member that could be readonly
ProprietaryDetect struct methods and properties that don't modify state and could be marked readonly to prevent defensive copies.
OpenRewrite. Recipes. CSharp. CodeQuality. Style. FindReadOnlyStructMembersmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Style. FindReadOnlyStructMembersInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.