chore: Bump golangci-lint to v2.11.1#29
Merged
Merged
Conversation
Co-Authored-By: mkeeler@launchdarkly.com <keelerm84@gmail.com>
Co-Authored-By: mkeeler@launchdarkly.com <keelerm84@gmail.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
keelerm84
approved these changes
Mar 9, 2026
jsonbailey
approved these changes
Mar 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps
golangci-lintfrom v1.48.0 to v2.11.1 in the Makefile and fixes two lint issues surfaced by the new version's stricter/changed defaults:consul_impl.go: Updated//nolint:stylecheck→//nolint:staticcheckbecausestylecheckwas merged intostaticcheckin golangci-lint v2 (the old directive was flagged as an unknown linter bynolintlint). The capitalized error string infmt.Errorf("Consul transaction failed: ...")is intentional.consul_test.go: Added//nolint:errchecktodefer store.Close()in test cleanup code, sinceerrcheckis now enabled by default in v2.Part of a broader effort to bump golangci-lint across LaunchDarkly Go repositories, matching ld-relay#586.
Review & Testing Checklist for Human
nolint:staticcheckis the correct linter name for suppressing the ST1005 (capitalized error string) rule in golangci-lint v2 —stylecheckno longer exists as a standalone linter.golangci.yml, so it relies entirely on default linter settings which changed between v1 and v2)errcheckondefer store.Close()in the test is acceptable rather than handling the error explicitlyNotes
Link to Devin session: https://app.devin.ai/sessions/45faa2d1c22c41c6beab7ce8e891bc96
Requested by: @keelerm84
Note
Low Risk
Low risk: build tooling change plus comment-level lint suppressions; no runtime behavior is altered beyond ignoring a
Close()error in a test defer.Overview
Bumps
golangci-linttov2.11.1in theMakefile.Fixes newly surfaced lint failures by updating the Consul transaction error suppression to
//nolint:staticcheckinconsul_impl.goand adding//nolint:errcheckfordefer store.Close()inconsul_test.go.Written by Cursor Bugbot for commit bc0d188. This will update automatically on new commits. Configure here.