Skip to content

Releases: golangci/golangci-lint

v2.10.1

17 Feb 15:54
5d1e709

Choose a tag to compare

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, the maintainers and linter authors.

We appreciate it! โค๏ธ

For key updates, see the changelog.

Changelog

  • 31356b6 fix: make markDepsForAnalyzingSource recursive to fix buildssa panic (#6376)

v2.10.0

17 Feb 13:34
95dcb68

Choose a tag to compare

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, the maintainers and linter authors.

We appreciate it! โค๏ธ

For key updates, see the changelog.

Changelog

  • 87a60c9 build(deps): bump github.com/godoc-lint/godoc-lint from 0.11.1 to 0.11.2 (#6372)
  • f9b0a75 build(deps): bump github.com/nunnatsa/ginkgolinter from 0.22.0 to 0.23.0 (#6368)
  • abdeb8d build(deps): bump github.com/securego/gosec/v2 from 2.22.11 to 2.23.0 (#6366)
  • d9d4b19 build(deps): bump honnef.co/go/tools from 0.6.1 to 0.7.0 (#6367)

v2.9.0

10 Feb 23:40
72798d3

Choose a tag to compare

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, the maintainers and linter authors.

We appreciate it! โค๏ธ

For key updates, see the changelog.

Changelog

  • 7bcbbbf build(deps): bump github.com/MirrexOne/unqueryvet from 1.4.0 to 1.5.0 (#6320)
  • 34a7735 build(deps): bump github.com/MirrexOne/unqueryvet from 1.5.0 to 1.5.3 (#6332)
  • 4fd6c24 build(deps): bump github.com/alecthomas/chroma/v2 from 2.21.1 to 2.22.0 (#6308)
  • bc9df8b build(deps): bump github.com/alecthomas/chroma/v2 from 2.22.0 to 2.23.0 (#6328)
  • 2ed365c build(deps): bump github.com/alecthomas/chroma/v2 from 2.23.0 to 2.23.1 (#6338)
  • 935cc2f build(deps): bump github.com/alexkohler/prealloc from 1.0.1 to 1.0.2 (#6307)
  • a0a46d1 build(deps): bump github.com/bombsimon/wsl/v5 from 5.3.0 to 5.6.0 (#6333)
  • d79ce2f build(deps): bump github.com/ghostiam/protogetter from 0.3.18 to 0.3.19 (#6326)
  • 1d3d007 build(deps): bump github.com/ghostiam/protogetter from 0.3.19 to 0.3.20 (#6346)
  • a410925 build(deps): bump github.com/go-viper/mapstructure/v2 from 2.4.0 to 2.5.0 (#6318)
  • 353cec6 build(deps): bump github.com/golangci/golines from 0.14.0 to 0.15.0 (#6354)
  • 645ae5b build(deps): bump github.com/golangci/misspell from 0.7.0 to 0.8.0 (#6358)
  • 9abb996 build(deps): bump github.com/mgechev/revive from 1.13.0 to 1.14.0 (#6359)
  • 1a9f05c build(deps): bump github.com/nunnatsa/ginkgolinter from 0.21.2 to 0.22.0 (#6306)
  • 6106a60 build(deps): bump github.com/shirou/gopsutil/v4 from 4.25.12 to 4.26.1 (#6342)
  • eac37cb build(deps): bump github.com/sirupsen/logrus from 1.9.3 to 1.9.4 (#6325)
  • efc54c5 build(deps): bump go.augendre.info/arangolint from 0.3.1 to 0.4.0 (#6304)
  • 8f0bb64 build(deps): bump golang.org/x/mod from 0.31.0 to 0.32.0 (#6317)
  • 70ad936 build(deps): bump golang.org/x/mod from 0.32.0 to 0.33.0 (#6355)
  • ca3fa5d build(deps): bump golang.org/x/oauth2 from 0.34.0 to 0.35.0 in /scripts/gen_github_action_config in the scripts group (#6352)
  • a0a1f7e build(deps): bump golang.org/x/sys from 0.39.0 to 0.40.0 (#6305)
  • a346ce3 build(deps): bump golang.org/x/sys from 0.40.0 to 0.41.0 (#6356)
  • 956db12 build(deps): bump golang.org/x/tools from 0.40.0 to 0.41.0 (#6319)
  • 2eecf28 build(deps): bump golang.org/x/tools from 0.41.0 to 0.42.0 (#6357)
  • b16c91e build(deps): bump the linter-testdata group across 1 directory with 2 updates (#6343)
  • 4636637 feat: do not collect VCS information when loading code (#6349)
  • 0515856 feat: log information about files when configuration verification (#6330)
  • 7024fff fix: emit an error when no linters enabled (#6323)
  • e9b7221 go1.26 support (#6271)
  • f9b1289 mnd: add more tests (#6324)
  • de42a46 unqueryvet: change default (#6350)

v2.8.0

07 Jan 21:56

Choose a tag to compare

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, the maintainers and linter authors.

We appreciate it! โค๏ธ

For key updates, see the changelog.

Changelog

  • 6a55b8b build(deps): bump codeberg.org/polyfloyd/go-errorlint from 1.8.0 to 1.9.0 (#6284)
  • 57d155c build(deps): bump github.com/BurntSushi/toml from 1.5.0 to 1.6.0 (#6276)
  • 0d43769 build(deps): bump github.com/MirrexOne/unqueryvet from 1.3.0 to 1.4.0 (#6299)
  • 6c53281 build(deps): bump github.com/alecthomas/chroma/v2 from 2.20.0 to 2.21.1 (#6278)
  • 2f5fe97 build(deps): bump github.com/alexkohler/prealloc from 1.0.0 to 1.0.1 (#6289)
  • 496ae44 build(deps): bump github.com/ghostiam/protogetter from 0.3.17 to 0.3.18 (#6277)
  • e2fbe0a build(deps): bump github.com/go-critic/go-critic from 0.14.2 to 0.14.3 (#6300)
  • 3cebab9 build(deps): bump github.com/godoc-lint/godoc-lint from 0.10.2 to 0.11.1 (#6282)
  • 7a6a90c build(deps): bump github.com/golangci/golines from 0.0.0-20250217134842-442fd0091d95 to 0.14.0 (#6279)
  • b388efe build(deps): bump github.com/ldez/gomoddirectives from 0.7.1 to 0.8.0 (#6241)
  • 3eae3e9 build(deps): bump github.com/securego/gosec/v2 from 2.22.11-0.20251204091113-daccba6b93d7 to 2.22.11 (#6258)
  • e45bbde build(deps): bump github.com/shirou/gopsutil/v4 from 4.25.11 to 4.25.12 (#6290)
  • 0e8e7fd build(deps): bump golang.org/x/mod from 0.30.0 to 0.31.0 (#6253)
  • 4286683 build(deps): bump golang.org/x/oauth2 from 0.33.0 to 0.34.0 in /scripts/gen_github_action_config in the scripts group (#6247)
  • 7d53213 build(deps): bump golang.org/x/sync from 0.18.0 to 0.19.0 (#6255)
  • 9756d45 build(deps): bump golang.org/x/sys from 0.38.0 to 0.39.0 (#6254)
  • 54af8f3 build(deps): bump golang.org/x/tools from 0.39.0 to 0.40.0 (#6252)
  • df2b36f build(deps): bump golangci/golangci-lint-action from 9.1.0 to 9.2.0 in the github-actions group (#6248)
  • 6441d5c build(deps): bump peter-evans/create-pull-request from 7 to 8 in the github-actions group (#6270)
  • efa7852 build(deps): bump the linter-testdata group across 5 directories with 8 updates (#6286)
  • 246bc08 revive: add missing enable-default-rules setting (#6288)
  • 2135d9a revive: fix suggested fixes (#6295)

v2.7.2

07 Dec 17:23
9f61b0f

Choose a tag to compare

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, the maintainers and linter authors.

We appreciate it! โค๏ธ

For key updates, see the changelog.

Changelog

  • ceaf3c0 build(deps): bump github.com/securego/gosec/v2 from 2.22.10 to daccba6b93d7 (#6238)
  • 031b108 build(deps): bump github.com/spf13/cobra from 1.10.1 to 1.10.2 (#6240)

v2.7.1

04 Dec 14:54
a4b55eb

Choose a tag to compare

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, the maintainers and linter authors.

We appreciate it! โค๏ธ

For key updates, see the changelog.

Changelog

v2.7.0

03 Dec 20:17
e6ebea0

Choose a tag to compare

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, the maintainers and linter authors.

We appreciate it! โค๏ธ

For key updates, see the changelog.

Changelog

  • cfbf62e build(deps): bump github.com/MirrexOne/unqueryvet from 1.2.1 to 1.3.0 (#6177)
  • c7c1cb6 build(deps): bump github.com/catenacyber/perfsprint from 0.10.0 to 0.10.1 (#6196)
  • 115d596 build(deps): bump github.com/godoc-lint/godoc-lint from 0.10.1 to 0.10.2 (#6228)
  • 0212d7c build(deps): bump github.com/hashicorp/go-version from 1.7.0 to 1.8.0 (#6222)
  • 3a04631 build(deps): bump github.com/mgechev/revive from 1.12.0 to 1.13.0 (#6195)
  • 23f63fd build(deps): bump github.com/shirou/gopsutil/v4 from 4.25.10 to 4.25.11 (#6229)
  • de3c6c7 build(deps): bump github.com/stbenjam/no-sprintf-host-port from 0.2.0 to 0.3.1 (#6162)
  • 0014498 build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.11.0 to 2.12.0 (#6221)
  • ee422dd build(deps): bump golang.org/x/mod from 0.29.0 to 0.30.0 (#6197)
  • 2c9d09b build(deps): bump golang.org/x/sys from 0.37.0 to 0.38.0 (#6194)
  • 9da4c1d build(deps): bump golang.org/x/tools from 0.38.0 to 0.39.0 (#6193)
  • 9a9fd5b build(deps): bump the github-actions group with 2 updates (#6211)
  • db0d909 feat: add some flags to the custom command (#6184)
  • 101ccac fix: clone args used by custom command (#6206)

v2.6.2

14 Nov 13:26
dc16cf4

Choose a tag to compare

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, the maintainers and linter authors.

We appreciate it! โค๏ธ

For key updates, see the changelog.

Changelog

  • a237b82 build(deps): bump github.com/maratori/testableexamples from 1.0.0 to 1.0.1 (#6182)
  • 7255b2c build(deps): bump github.com/maratori/testpackage from 1.1.1 to 1.1.2 (#6183)
  • f07ab6a build(deps): bump golang.org/x/oauth2 from 0.32.0 to 0.33.0 in /scripts/gen_github_action_config in the scripts group (#6185)
  • 79163b6 build(deps): bump golang.org/x/sync from 0.17.0 to 0.18.0 (#6181)
  • 7bcb236 build(deps): bump golangci/golangci-lint-action from 8.0.0 to 9.0.0 in the github-actions group (#6186)
  • a8a12db fix: fmt command with symlinks (#6187)
  • c128d12 fix: use file depending on build configuration to invalidate cache (#6179)

v2.6.1

04 Nov 11:31

Choose a tag to compare

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, the maintainers and linter authors.

We appreciate it! โค๏ธ

For key updates, see the changelog.

Changelog

  • 1865317 build(deps): bump github.com/go-critic/go-critic from 0.14.0 to 0.14.2 (#6164)
  • a9084fe build(deps): bump github.com/karamaru-alpha/copyloopvar from 1.2.1 to 1.2.2 (#6161)
  • 9b10709 build(deps): bump github.com/shirou/gopsutil/v4 from 4.25.9 to 4.25.10 (#6168)
  • 8b07473 build(deps): bump the linter-testdata group across 2 directories with 3 updates (#6167)

v2.6.0

29 Oct 20:06
fb09c37

Choose a tag to compare

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, the maintainers and linter authors.

We appreciate it! โค๏ธ

For key updates, see the changelog.

Changelog

  • b99da87 build(deps): bump github.com/Abirdcfly/dupword from 0.1.6 to 0.1.7 (#6142)
  • 45547bc build(deps): bump github.com/ashanbrown/forbidigo/v2 from 2.1.0 to 2.3.0 (#6149)
  • ddce9aa build(deps): bump github.com/ashanbrown/makezero/v2 from 2.0.1 to 2.1.0 (#6150)
  • 43aa137 build(deps): bump github.com/bombsimon/wsl/v5 from 5.2.0 to 5.3.0 (#6113)
  • 6970e52 build(deps): bump github.com/catenacyber/perfsprint from 0.9.1 to 0.10.0 (#6134)
  • e6d1006 build(deps): bump github.com/charithe/durationcheck from 0.0.10 to 0.0.11 (#6148)
  • ee369a2 build(deps): bump github.com/ghostiam/protogetter from 0.3.16 to 0.3.17 (#6112)
  • f61b811 build(deps): bump github.com/go-critic/go-critic from 0.13.0 to 0.14.0 (#6135)
  • b6347ca build(deps): bump github.com/godoc-lint/godoc-lint from 0.10.0 to 0.10.1 (#6131)
  • 0547076 build(deps): bump github.com/gofrs/flock from 0.12.1 to 0.13.0 (#6124)
  • a0ecbfe build(deps): bump github.com/gostaticanalysis/nilerr from 0.1.1 to 0.1.2 (#6105)
  • 6e9a864 build(deps): bump github.com/kunwardeep/paralleltest from 1.0.14 to 1.0.15 (#6132)
  • d9bc87f build(deps): bump github.com/ldez/exptostd from 0.4.4 to 0.4.5 (#6117)
  • 12a767b build(deps): bump github.com/ldez/gomoddirectives from 0.7.0 to 0.7.1 (#6101)
  • 4d9abc8 build(deps): bump github.com/nunnatsa/ginkgolinter from 0.21.0 to 0.21.2 (#6118)
  • fe94ab0 build(deps): bump github.com/quasilyte/go-ruleguard/dsl from 0.3.22 to 0.3.23 (#6102)
  • 69cb39d build(deps): bump github.com/securego/gosec/v2 from 2.22.8 to 2.22.9 (#6103)
  • 68007a6 build(deps): bump github.com/securego/gosec/v2 from 2.22.9 to 2.22.10 (#6133)
  • 893f8d8 build(deps): bump github.com/shirou/gopsutil/v4 from 4.25.8 to 4.25.9 (#6111)
  • 354996c build(deps): bump github/codeql-action from 3 to 4 in the github-actions group (#6129)
  • 2fb8ec3 build(deps): bump go.augendre.info/arangolint from 0.2.0 to 0.3.0 (#6139)
  • a53feb4 build(deps): bump go.augendre.info/arangolint from 0.3.0 to 0.3.1 (#6141)
  • 564ba15 build(deps): bump go.augendre.info/fatcontext from 0.8.1 to 0.9.0 (#6104)
  • d520da6 build(deps): bump golang.org/x/mod from 0.28.0 to 0.29.0 (#6119)
  • 3be46d6 build(deps): bump golang.org/x/oauth2 from 0.31.0 to 0.32.0 in /scripts/gen_github_action_config in the scripts group (#6130)
  • 6d75084 build(deps): bump golang.org/x/sys from 0.36.0 to 0.37.0 (#6116)
  • bcfa9db build(deps): bump golang.org/x/tools from 0.37.0 to 0.38.0 (#6123)
  • 95f94ff build(deps): bump mvdan.cc/gofumpt from 0.9.1 to 0.9.2 (#6143)
  • 4d2276d build(deps): bump mvdan.cc/unparam to HEAD (#6152)
  • a0694f9 build(deps): bump the linter-testdata group across 4 directories with 7 updates (#6106)
  • 655e8ed feat: add modernize analyzer suite (#6126)
  • faa618a fix: ignore some files to hash the version for custom build (#6100)
  • 588af2f gocritic: add new checks
  • 657bc31 perfsprint: add new options