Find reassigned primary constructor parameter

Proprietary

Detect primary constructor parameters that are reassigned in the class body. Primary constructor parameters should be treated as readonly.

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

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