Use string.StartsWith(char)/EndsWith(char) overload

Proprietary

Finds calls to string.StartsWith("x") and string.EndsWith("x") with a single-character string literal that could use the char overload for better performance.

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

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