Skip to content

chore(deps): update module go:github.com/golangci/golangci-lint/v2/cmd/golangci-lint to v2.4.0#184

Merged
koki-develop merged 1 commit into
mainfrom
renovate/go-github.com-golangci-golangci-lint-v2-cmd-golangci-lint-2.x
Aug 16, 2025
Merged

chore(deps): update module go:github.com/golangci/golangci-lint/v2/cmd/golangci-lint to v2.4.0#184
koki-develop merged 1 commit into
mainfrom
renovate/go-github.com-golangci-golangci-lint-v2-cmd-golangci-lint-2.x

Conversation

@renovate

@renovate renovate Bot commented Aug 8, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
go:github.com/golangci/golangci-lint/v2/cmd/golangci-lint 2.1.6 -> 2.4.0 age confidence

Release Notes

golangci/golangci-lint (go:github.com/golangci/golangci-lint/v2/cmd/golangci-lint)

v2.4.0

Compare Source

  1. Enhancements
    • 🎉 go1.25 support
  2. Linters new features or changes
    • exhaustruct: from v3.3.1 to 4.0.0 (new options: allow-empty, allow-empty-rx, allow-empty-returns, allow-empty-declarations)
  3. Linters bug fixes
    • godox: trim filepath from report messages
    • staticcheck: allow empty options
    • tagalign: from 1.4.2 to 1.4.3
  4. Documentation
    • 🌟 New website (with a search engine)

v2.3.1

Compare Source

  1. Linters bug fixes
    • gci: from 0.13.6 to 0.13.7
    • gosec: from 2.22.6 to 2.22.7
    • noctx: from 0.3.5 to 0.4.0
    • wsl: from 5.1.0 to 5.1.1
    • tagliatelle: force upper case for custom initialisms

v2.3.0

Compare Source

  1. Linters new features or changes
    • ginkgolinter: from 0.19.1 to 0.20.0 (new option: force-assertion-description)
    • iface: from 1.4.0 to 1.4.1 (report message improvements)
    • noctx: from 0.3.4 to 0.3.5 (new detections: log/slog, exec, crypto/tls)
    • revive: from 1.10.0 to 1.11.0 (new rule: enforce-switch-style)
    • wsl: from 5.0.0 to 5.1.0
  2. Linters bug fixes
    • gosec: from 2.22.5 to 2.22.6
    • noinlineerr: from 1.0.4 to 1.0.5
    • sloglint: from 0.11.0 to 0.11.1
  3. Misc.
    • fix: panic close of closed channel

v2.2.2

Compare Source

  1. Linters bug fixes
    • noinlineerr: from 1.0.3 to 1.0.4
  2. Documentation
    • Improve debug keys documentation
  3. Misc.
    • fix: panic close of closed channel
    • godot: add noinline value into the JSONSchema

v2.2.1

Compare Source

  1. Linters bug fixes
  • varnamelen: fix configuration

v2.2.0

Compare Source

  1. New linters
  2. Linters new features or changes
    • errcheck: add verbose option
    • funcorder: from 0.2.1 to 0.5.0 (new option alphabetical)
    • gomoddirectives: from 0.6.1 to 0.7.0 (new option ignore-forbidden)
    • iface: from 1.3.1 to 1.4.0 (new option unexported)
    • noctx: from 0.1.0 to 0.3.3 (new report messages, and new rules related to database/sql)
    • noctx: from 0.3.3 to 0.3.4 (new SQL functions detection)
    • revive: from 1.9.0 to 1.10.0 (new rules: time-date, unnecessary-format, use-fmt-print)
    • usestdlibvars: from 1.28.0 to 1.29.0 (new option time-date-month)
    • wsl: deprecation
    • wsl_v5: from 4.7.0 to 5.0.0 (major version with new configuration)
  3. Linters bug fixes
    • dupword: from 0.1.3 to 0.1.6
    • exptostd: from 0.4.3 to 0.4.4
    • forbidigo: from 1.6.0 to 2.1.0
    • gci: consistently format the code
    • go-spancheck: from 0.6.4 to 0.6.5
    • goconst: from 1.8.1 to 1.8.2
    • gosec: from 2.22.3 to 2.22.4
    • gosec: from 2.22.4 to 2.22.5
    • makezero: from 1.2.0 to 2.0.1
    • misspell: from 0.6.0 to 0.7.0
    • usetesting: from 0.4.3 to 0.5.0
  4. Misc.
    • exclusions: fix path-expect
    • formatters: write the input to stdout when using stdin and there are no changes
    • migration: improve the error message when trying to migrate a migrated config
    • typecheck: deduplicate errors
    • typecheck: stops the analysis after the first error
    • Deprecate print-resources-usage flag
    • Unique version per custom build
  5. Documentation
    • Improves typecheck FAQ
    • Adds plugin systems recommendations
    • Add description for linters.default sets

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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 force-pushed the renovate/go-github.com-golangci-golangci-lint-v2-cmd-golangci-lint-2.x branch from acdb672 to 9b3256b Compare August 16, 2025 21:44
@renovate renovate Bot changed the title chore(deps): update module go:github.com/golangci/golangci-lint/v2/cmd/golangci-lint to v2.3.1 chore(deps): update module go:github.com/golangci/golangci-lint/v2/cmd/golangci-lint to v2.4.0 Aug 16, 2025
@github-actions

Copy link
Copy Markdown
Contributor

Renovate PR Review Results

⚖️ Safety Assessment: ✅ Safe

🔍 Release Content Analysis

  • Go 1.25 Support: The update adds official support for Go 1.25, which aligns with the project's current Go version (1.25.0 in mise.toml)
  • New Linters Added: Four new linters (arangolint, embeddedstructfieldcheck, noinlineerr, swaggo) provide additional code quality checks
  • Enhanced Features: Multiple existing linters received feature updates and bug fixes, including exhaustruct with new configuration options
  • No Breaking Changes: All changes are backward compatible with existing configurations
  • Security Improvements: Enhanced error handling and reporting mechanisms

🎯 Impact Scope Investigation

  • Primary Usage: golangci-lint is used in three locations:
    • /home/runner/work/gat/gat/mise.toml:4 - Tool version specification (updated by this PR)
    • /home/runner/work/gat/gat/.github/workflows/ci.yml:48 - CI pipeline execution
    • /home/runner/work/gat/gat/CLAUDE.md:32 - Documentation reference
  • No Configuration Files: No .golangci.yml or similar configuration files found, indicating default settings are used
  • CI Integration: The linter runs with --verbose ./... flags in GitHub Actions workflow
  • Zero Dependencies Impact: This is a development tool update with no effect on runtime dependencies

💡 Recommended Actions

  • Immediate Merge Safe: The update can be merged immediately as it's a development tool upgrade with backward compatibility
  • No Code Changes Required: Existing linting command (golangci-lint run --verbose ./...) remains unchanged
  • CI Validation: The existing CI pipeline will automatically validate the new version works correctly
  • Optional Enhancement: Consider leveraging new linter features like the enhanced exhaustruct options for stricter code quality checks

🔗 Reference Links

@koki-develop
koki-develop merged commit 4fdfbaa into main Aug 16, 2025
5 checks passed
@koki-develop
koki-develop deleted the renovate/go-github.com-golangci-golangci-lint-v2-cmd-golangci-lint-2.x branch August 16, 2025 23:31
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