Prefer raw string literals for regex patterns

Proprietary

Replace interpreted string literals containing backslash escapes with raw string literals in regexp.Compile or regexp.MustCompile calls.

org.openrewrite.golang.codequality.PreferRawStringForRegex
mod run . --recipe=org.openrewrite.golang.codequality.PreferRawStringForRegex

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