Skip to content

chore(deps): update pre-commit hook golangci/golangci-lint to v2.12.2#160

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/golangci-golangci-lint-2.x
Open

chore(deps): update pre-commit hook golangci/golangci-lint to v2.12.2#160
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/golangci-golangci-lint-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 1, 2026

This PR contains the following updates:

Package Type Update Change
golangci/golangci-lint repository minor v2.11.4v2.12.2

Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.


Release Notes

golangci/golangci-lint (golangci/golangci-lint)

v2.12.2

Compare Source

Released on 2026-05-06

  1. Linters bug fixes
    • gomodguard_v2: fix blocked configuration
    • gomodguard_v2: from 2.1.0 to 2.1.3
    • iface: from 1.4.1 to 1.4.2

v2.12.1

Compare Source

Released on 2026-05-01

  1. Linters bug fixes
    • gomodguard_v2: fix panic with migration suggestion
  2. Misc.
    • fix install.sh script (if you are still using an URL based on the branch master, please update to use https://golangci-lint.run/install.sh)

v2.12.0

Compare Source

Released on 2026-05-01

  1. New linters
  2. Linters new features or changes
    • dupl: from f665c8d to c99c5cf (extended detection)
    • funcorder: from 0.5.0 to 0.6.0 (new option: function)
    • goconst: add an option to ignore strings from tests
    • goconst: from 1.8.2 to 1.10.0 (extended detection)
    • gomodguard_v2: from 1.4.1 to 2.1.0 (major version with new configuration)
    • gosec: from 619ce21 to 2.26.1 (new checks: G124, G708, G709, G710)
    • govet: add inline analyzer
    • makezero: from 2.1.0 to 2.2.1 (support slice type aliases)
    • paralleltest: expose checkcleanup option
    • sloglint: from 0.11.1 to 0.12.0 (new options: allowed-keys, custom-funcs)
    • wsl_v5: from 5.6.0 to 5.8.0 (new option: cuddle-max-statements; new checks: after-decl, after-defer, after-expr, after-go, cuddle-group)
  3. Linters bug fixes
    • forbidigo: from 2.3.0 to 2.3.1
    • godot: from 1.5.4 to 1.5.6
    • govet-modernize: from 0.43.0 to 0.44.0
    • ireturn: from 0.4.0 to 0.4.1
    • rowserrcheck: from 1.1.1 to c5f79b8
  4. Misc.
    • Decrease cache entropy
    • Embed the JSON schema in the binary
    • Filter env vars when cloning the repository with the custom command

Configuration

📅 Schedule: (UTC)

  • 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) May 1, 2026 22:12
@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented May 1, 2026

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.


  • Branch has one or more failed status checks

@codecov
Copy link
Copy Markdown

codecov Bot commented May 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.97%. Comparing base (a5174b6) to head (07b35c2).

❌ Your project check has failed because the head coverage (59.97%) is below the target coverage (65.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #160   +/-   ##
=======================================
  Coverage   59.97%   59.97%           
=======================================
  Files          46       46           
  Lines        3458     3458           
=======================================
  Hits         2074     2074           
  Misses       1258     1258           
  Partials      126      126           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@augmentcode
Copy link
Copy Markdown

augmentcode Bot commented May 1, 2026

🤖 Augment PR Summary

Summary: Updates the golangci-lint pre-commit hook from v2.11.4 to v2.12.1 to pick up the latest linter fixes/features.
Changes: Bumps the pinned tag in .pre-commit-config.yaml.

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestion posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Comment thread .pre-commit-config.yaml Outdated
- id: sync-pre-commit-deps
- repo: https://github.com/golangci/golangci-lint
rev: v2.11.4
rev: v2.12.1
Copy link
Copy Markdown

@augmentcode augmentcode Bot May 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because .golangci.yaml sets linters.default: all, bumping golangci-lint can implicitly enable new linters/changed checks and start failing local pre-commit runs for contributors. Consider verifying this version bump doesn’t introduce unexpected new failures (e.g., new clickhouselint or behavior changes around gomodguard_v2).

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

@renovate renovate Bot force-pushed the renovate/golangci-golangci-lint-2.x branch from a7c05b4 to 996fdb7 Compare May 2, 2026 17:42
@renovate renovate Bot force-pushed the renovate/golangci-golangci-lint-2.x branch 7 times, most recently from bd2c6ae to 0f22d83 Compare May 6, 2026 10:05
@renovate renovate Bot force-pushed the renovate/golangci-golangci-lint-2.x branch from 0f22d83 to 8cb1eda Compare May 10, 2026 20:15
@renovate renovate Bot changed the title chore(deps): update pre-commit hook golangci/golangci-lint to v2.12.1 chore(deps): update pre-commit hook golangci/golangci-lint to v2.12.2 May 10, 2026
@renovate renovate Bot force-pushed the renovate/golangci-golangci-lint-2.x branch 9 times, most recently from ab5c604 to f5277d7 Compare May 15, 2026 08:38
@renovate renovate Bot force-pushed the renovate/golangci-golangci-lint-2.x branch 3 times, most recently from fb2c5c7 to bbc66a2 Compare May 24, 2026 00:21
@renovate renovate Bot force-pushed the renovate/golangci-golangci-lint-2.x branch 2 times, most recently from b946a6d to 213557e Compare May 28, 2026 23:47
@renovate renovate Bot force-pushed the renovate/golangci-golangci-lint-2.x branch 12 times, most recently from 48dc804 to 9dd93c9 Compare June 6, 2026 09:59
@renovate renovate Bot force-pushed the renovate/golangci-golangci-lint-2.x branch 2 times, most recently from 61b845e to d245c58 Compare June 7, 2026 22:04
@renovate renovate Bot force-pushed the renovate/golangci-golangci-lint-2.x branch from d245c58 to 07b35c2 Compare June 8, 2026 02:15
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.

0 participants