Skip to content

Update module github.com/golangci/golangci-lint to v2.11.1#124

Merged
renovate[bot] merged 2 commits intomainfrom
renovate/github.com-golangci-golangci-lint-2.x
Mar 9, 2026
Merged

Update module github.com/golangci/golangci-lint to v2.11.1#124
renovate[bot] merged 2 commits intomainfrom
renovate/github.com-golangci-golangci-lint-2.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 9, 2026

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/golangci/golangci-lint v2.10.1v2.11.1 age adoption passing confidence

Release Notes

golangci/golangci-lint (github.com/golangci/golangci-lint)

v2.11.1

Compare Source

Released on 2026-03-06

Due to an error related to AUR, some artifacts of the v2.11.0 release have not been published.

This release contains the same things as v2.11.0.

v2.11.0

Compare Source

Released on 2026-03-06

  1. Linters new features or changes
    • errcheck: from 1.9.0 to 1.10.0 (exclude crypto/rand.Read by default)
    • gosec: from 2.23.0 to 2.24.6 (new rules: G113, G118, G119, G120, G121, G122, G123, G408, G707)
    • noctx: from 0.4.0 to 0.5.0 (new detection: httptest.NewRequestWithContext)
    • prealloc: from 1.0.2 to 1.1.0
    • revive: from 1.14.0 to 1.15.0 (⚠️ Breaking change: package-related checks moved from var-naming to a new rule package-naming)
  2. Linters bug fixes
    • gocognit: from 1.2.0 to 1.2.1
    • gosec: from 2.24.6 to 2.24.7
    • unqueryvet: from 1.5.3 to 1.5.4

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) March 9, 2026 14:41
@codecov
Copy link

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.20%. Comparing base (5ae1049) to head (b0773b9).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #124   +/-   ##
=======================================
  Coverage   88.20%   88.20%           
=======================================
  Files          20       20           
  Lines         763      763           
=======================================
  Hits          673      673           
  Misses         75       75           
  Partials       15       15           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@colinodell
Copy link
Member

@copilot fix these new lint violations:

Error: ../../server_test.go:104:37: G118: context cancellation function returned by WithCancel/WithTimeout/WithDeadline is not called (gosec)
			ctx, cancel := context.WithCancel(t.Context())
			                                 ^
Error: ../../pkg/server/handler_test.go:91:39: net/http/httptest.NewRequest must not be called. use net/http/httptest.NewRequestWithContext (noctx)
			handler(writer, httptest.NewRequest("POST", "/some-handler", nil))
			                                   ^
Error: ../../pkg/user/handler_test.go:147:47: net/http/httptest.NewRequest must not be called. use net/http/httptest.NewRequestWithContext (noctx)
		router.ServeHTTP(writer, httptest.NewRequest("GET", "/users/rufus/preferences", nil))
		                                            ^
Error: ../../pkg/user/handler_test.go:168:47: net/http/httptest.NewRequest must not be called. use net/http/httptest.NewRequestWithContext (noctx)
		router.ServeHTTP(writer, httptest.NewRequest("GET", "/users/taylor/preferences", nil))	   

Copy link

Copilot AI commented Mar 9, 2026

@colinodell I've opened a new pull request, #125, to work on those changes. Once the pull request is ready, I'll request review from you.

@renovate renovate bot requested a review from a team March 9, 2026 15:29
@renovate renovate bot merged commit 3bb493d into main Mar 9, 2026
9 checks passed
@renovate renovate bot deleted the renovate/github.com-golangci-golangci-lint-2.x branch March 9, 2026 16:38
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.

2 participants