Skip to content

fix: make sure we do not ignore defer without a named return#449

Merged
jakobmoellerdev merged 3 commits into
open-component-model:mainfrom
jakobmoellerdev:named-return-fix
Jul 25, 2025
Merged

fix: make sure we do not ignore defer without a named return#449
jakobmoellerdev merged 3 commits into
open-component-model:mainfrom
jakobmoellerdev:named-return-fix

Conversation

@jakobmoellerdev

Copy link
Copy Markdown
Member

What this PR does / why we need it

This enables https://github.com/jakobmoellerdev/deferrlint which is a result of @fabianburth investigation into why we ignore some deferred errors. Eventually we want to contribute this to golangci-lint, at which point we can remove the explicit task for it

Which issue(s) this PR fixes

fix open-component-model/ocm-project#560

Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
@jakobmoellerdev jakobmoellerdev requested a review from a team as a code owner July 23, 2025 11:48
@jakobmoellerdev jakobmoellerdev merged commit 7c3c80e into open-component-model:main Jul 25, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

defer error is ignored

2 participants