← All recipes
Moderne licensed

Use MixedCaps for constants

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

Find constant or variable names using ALL_CAPS_WITH_UNDERSCORES. Go convention is to use MixedCaps, not ALL_CAPS.

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.UseMixedCapsForConstants

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

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