Make field read-only

Proprietary

Make field read-only when it is only assigned in the constructor or initializer.

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

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