Find Regex that could use source generator

Proprietary

Detect new Regex(...) calls that could benefit from the [GeneratedRegex] source generator attribute for better performance (.NET 7+).

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

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