Skip to content

Bump golangci-lint to v2.12.2 - #5941

Merged
stefanhaller merged 7 commits into
masterfrom
bump-golangci-lint
Aug 16, 2026
Merged

Bump golangci-lint to v2.12.2#5941
stefanhaller merged 7 commits into
masterfrom
bump-golangci-lint

Conversation

@stefanhaller

Copy link
Copy Markdown
Collaborator

No description provided.

I don't really know what they are for, but they don't trigger any
errors.
Apparently Ptr is a deprecated name; with the new golangci-lint version
this would cause

  inline: Constant reflect.Ptr should be inlined
Not only is this nicer code (and more idiomatic at least in this code
base), but it also avoids linter warnings about missing preallocations
(lo.Map does preallocate the result array).
Instead, create the one dynamic element beforehand and include it in the
literal. This avoids a preallocation warning from the linter.
@stefanhaller stefanhaller added the maintenance For refactorings, CI changes, tests, version bumping, etc label Aug 16, 2026
@stefanhaller
stefanhaller merged commit 431993b into master Aug 16, 2026
14 checks passed
@stefanhaller
stefanhaller deleted the bump-golangci-lint branch August 16, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance For refactorings, CI changes, tests, version bumping, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant