Skip to content

linter: nakedret#831

Open
mzihlmann wants to merge 1 commit into
mainfrom
lint-nakedret
Open

linter: nakedret#831
mzihlmann wants to merge 1 commit into
mainfrom
lint-nakedret

Conversation

@mzihlmann

Copy link
Copy Markdown
Collaborator

Carves the naked-return cleanup out of #539. Naked returns are rewritten to explicit return x, err form, generated by golangci-lint's nakedret fixer and behaviour-preserving (each return keeps the same named-return values it had implicitly). The nakedret linter itself is deliberately not enabled in the config here, that stays in #539 for now, so this is a pure code cleanup with no CI change.

@mzihlmann mzihlmann requested review from 0hlov3, BobDu, babs and nejch June 26, 2026 09:56
@mzihlmann mzihlmann changed the title make naked returns explicit linter: nakedret Jun 26, 2026
@mzihlmann mzihlmann mentioned this pull request Jun 26, 2026
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 20.00000% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/buildcontext/https.go 0.00% 3 Missing ⚠️
pkg/filesystem/resolve.go 50.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