From 23d3b1f695f3c05423b4b9cc083bd716ee228bcc Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 3 Jul 2026 21:52:37 +0000 Subject: [PATCH] chore(lint): raise default max-param-count from 5 to 6 Bump the paramcount rule's default limit (excluding context.Context) from 5 to 6. The limit is inherited by every consumer (backend, core, cli-private) that does not override --max-param-count, so this raises the ceiling uniformly and preserves cross-repo parity. Update the flag-default assertions in commands_test.go to match. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_016s3gh5XjM6sHU2kM2wpDUd --- internal/commands/commands_test.go | 4 ++-- internal/commands/lint.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/commands/commands_test.go b/internal/commands/commands_test.go index 5a325e8..8a061ec 100644 --- a/internal/commands/commands_test.go +++ b/internal/commands/commands_test.go @@ -157,7 +157,7 @@ func TestNewCheckCommand_FlagDefaults(t *testing.T) { "tab-width": 4, "max-func-len": 50, "max-nest-depth": 4, - "max-param-count": 5, + "max-param-count": 6, } for name, want := range intDefaults { got, err := fl.GetInt(name) @@ -285,7 +285,7 @@ func TestNewLintCommand_FlagDefaults(t *testing.T) { "tab-width": 4, "max-func-len": 50, "max-nest-depth": 4, - "max-param-count": 5, + "max-param-count": 6, } for name, want := range intDefaults { got, err := fl.GetInt(name) diff --git a/internal/commands/lint.go b/internal/commands/lint.go index ae336aa..b0bec0e 100644 --- a/internal/commands/lint.go +++ b/internal/commands/lint.go @@ -77,7 +77,7 @@ func bindLinterConfigFlags(fl *pflag.FlagSet, flags *lint.LinterFlags) { "maximum nesting depth within functions", ) fl.IntVar( - &flags.MaxParamCount, "max-param-count", 5, + &flags.MaxParamCount, "max-param-count", 6, "maximum param count excluding context.Context", ) fl.StringVar(