Find Regex without ExplicitCapture option

Proprietary

Detect new Regex() or Regex.IsMatch() without RegexOptions.ExplicitCapture. Using this option avoids unnecessary unnamed captures.

OpenRewrite.Recipes.CSharp.CodeQuality.Style.FindUseRegexOptions
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Style.FindUseRegexOptions

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