Use string.Contains(char) overload

Proprietary

Finds calls to string.Contains("x") with a single-character string literal that could use the string.Contains('x') overload for better performance.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.UseStringContainsChar
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.UseStringContainsChar

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