Audit error string format

Proprietary

Find errors.New and fmt.Errorf messages that are capitalized or end with punctuation. Error strings are often embedded in a larger message, so they should not be capitalized or end with punctuation (staticcheck ST1005).

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

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