← All recipes
Moderne licensed

Use descriptive variable names

Recipe IDorg.openrewrite.golang.codequality.UseDescriptiveVarNamesArtifactgithub.com/moderneinc/recipes-go

Find variable declarations with single-letter names that are not conventional short names (i, j, k, n, x, y, r, w, t, s, b, v).

Single recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.golang.codequality.UseDescriptiveVarNames

If the recipe isn’t available locally, install it with:

mod config recipes go install github.com/moderneinc/recipes-go