Skip to content

feat: support multi-line function expansion based on param count#29

Open
jharley wants to merge 1 commit intogolangci:mainfrom
jharley:jharley.funcparamthreshold
Open

feat: support multi-line function expansion based on param count#29
jharley wants to merge 1 commit intogolangci:mainfrom
jharley:jharley.funcparamthreshold

Conversation

@jharley
Copy link
Copy Markdown

@jharley jharley commented Mar 28, 2026

Introduces "func-param-threshold" to support expanding function (and receiver method) arguments across multiple lines if there is more than N arguments.

Disabled by default. Signatures with a parameter count less than the threshold are left alone.

For example, with the threshold of 3:

before
func myFunc(a int, b string, c bool) error {
  return nil
}
after
func myFunc(
  a int,
  b string,
  c bool,
) error {
  return nil
}

@ldez ldez self-requested a review March 28, 2026 21:01
@ldez ldez added the enhancement New feature or request label Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants