String.Format format string should be constant

Proprietary

The format string passed to string.Format should be a compile-time constant to enable analysis and avoid runtime format errors.

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

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