Use errors.New for simple errors
ProprietaryReplace fmt.Errorf("static message") with errors.New("static message") when there are no format verbs.
org. openrewrite. golang. codequality. UseErrorsNewForSimpleErrorsmod run . --recipe= org. openrewrite. golang. codequality. UseErrorsNewForSimpleErrorsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.