Skip to content

linter: unused-parameter#832

Open
mzihlmann wants to merge 1 commit into
mainfrom
lint-unused-param
Open

linter: unused-parameter#832
mzihlmann wants to merge 1 commit into
mainfrom
lint-unused-param

Conversation

@mzihlmann

Copy link
Copy Markdown
Collaborator

Carves the unused-parameter cleanup out of #539. Unused named function parameters are renamed to _ (e.g. the cobra Run: func(_ *cobra.Command, _ []string) handlers), as flagged by revive's unused-parameter rule. Purely mechanical and behaviour-preserving. The rule itself is not enabled in the config here, that stays in #539, so this is a code cleanup with no CI change.

@mzihlmann mzihlmann requested review from 0hlov3, BobDu, babs and nejch June 26, 2026 10:02
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/creds/env_keychain.go 0.00% 2 Missing ⚠️
cmd/executor/cmd/version.go 0.00% 1 Missing ⚠️
pkg/commands/copy.go 0.00% 0 Missing and 1 partial ⚠️
pkg/dockerfile/dockerfile.go 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant