← All recipes
Moderne licensed

Limit function parameters

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

Find functions with more than 5 parameters. Consider grouping parameters into a struct.

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

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

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