Avoid global variables

Proprietary

Find package-level var declarations. Mutable global state makes code harder to test and reason about.

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

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