Use string.EndsWith

Proprietary

Detect substring comparison patterns that could use EndsWith.

OpenRewrite.Recipes.CSharp.CodeQuality.Simplification.UseStringEndsWith
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Simplification.UseStringEndsWith

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