Releases: golangci/golangci-lint
v1.60.1
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
- 1147824 go1.23 support (#4836)
- 9eeb891 build(deps): bump golang.org/x/tools from 0.23.0 to 0.24.0 (#4898)
- 73bbf82 build(deps): bump github.com/polyfloyd/go-errorlint from 1.5.2 to 1.6.0 (#4899)
- a9ea7d3 unused: remove exported-is-used option
- 90664f6 build(deps): bump golangci/golangci-lint-action from 6.0.1 to 6.1.0 (#4893)
- 78a738f unused: remove exported-is-used option (#4890)
- 5536bb5 build(deps): bump github.com/mgechev/revive from 1.3.7 to 1.3.9 (#4886)
- f903621 build(deps): bump github.com/gofrs/flock from 0.12.0 to 0.12.1 (#4889)
- 113858f build(deps): bump github.com/uudashr/gocognit from 1.1.2 to 1.1.3 (#4887)
- 7cc813e build(deps): bump github.com/Crocmagnon/fatcontext from 0.3.0 to 0.4.0 (#4888)
- e8300b7 feat: improve processors filtering stats (#4882)
- e95ac1b fix: typecheck issues should never be ignored (#4870)
- ee37ef3 build(deps): bump golang.org/x/tools from 0.22.0 to 0.23.0 (#4868)
- 283a9e7 build(deps): bump github.com/gofrs/flock from 0.10.0 to 0.12.0 (#4863)
- aeacb54 build(deps): bump github.com/valyala/quicktemplate from 1.7.0 to 1.8.0 (#4862)
- c5998e1 build(deps): bump github.com/ryancurrah/gomodguard from 1.3.2 to 1.3.3 (#4851)
- 96bd9ef build(deps): bump github.com/gofrs/flock from 0.8.1 to 0.10.0 (#4852)
- a62f1f1 build(deps): bump github.com/moricho/tparallel from 0.3.1 to 0.3.2 (#4849)
- 967061e build(deps): bump github.com/bombsimon/wsl/v4 from 4.4.0 to 4.4.1 (#4844)
- 4f9e50e build(deps): bump github.com/Antonboom/testifylint from 1.4.2 to 1.4.3 (#4839)
- 23f2390 build(deps): bump go-simpler.org/sloglint from 0.7.1 to 0.7.2 (#4840)
- 45efa67 build(deps): bump github.com/jjti/go-spancheck from 0.6.1 to 0.6.2 (#4833)
- 304e22a fix: sanitize level property for SARIF (#4831)
- 9211eec build(deps): bump github.com/spf13/cobra from 1.7.0 to 1.8.1 (#4822)
- 2e2e14b build(deps): bump github.com/sivchari/tenv from 1.9.1 to 1.10.0 (#4823)
- 8abf4fe build(deps): bump github.com/Antonboom/testifylint from 1.4.1 to 1.4.2 (#4821)
- 7b776e4 build(deps): bump github.com/sashamelentyev/usestdlibvars from 1.26.0 to 1.27.0 (#4820)
- 464ad17 build(deps): bump goreleaser/goreleaser-action from 5 to 6 (#4809)
- a02629a build(deps): bump github.com/sivchari/tenv from 1.7.1 to 1.9.1 (#4808)
- a2cc1c4 build(deps): bump github.com/bombsimon/wsl/v4 from 4.3.0 to 4.4.0 (#4807)
- e2087c7 build(deps): bump github.com/Antonboom/testifylint from 1.3.1 to 1.4.1 (#4798)
- 784ea0e build(deps): bump github.com/Crocmagnon/fatcontext from 0.2.2 to 0.3.0 (#4783)
- eb23eaf lll: Advertise max line length instead of just reporting failure (#4781)
- 78f350b build(deps): bump github.com/GaijinEntertainment/go-exhaustruct/v3 from 3.2.0 to 3.3.0 (#4760)
- 2eb8081 build(deps): bump github.com/bombsimon/wsl/v4 from 4.2.1 to 4.3.0 (#4799)
v1.59.1
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
- f738736 build(deps): bump github.com/Antonboom/testifylint from 1.3.0 to 1.3.1 (#4759)
- 44b3cdd build(deps): bump github.com/go-viper/mapstructure/v2 from 2.0.0-alpha.1 to 2.0.0 (#4788)
- 1a55854 build(deps): bump github.com/golangci/misspell from 0.5.1 to 0.6.0 (#4804)
- 9a7a1ad build(deps): bump github.com/polyfloyd/go-errorlint from 1.5.1 to 1.5.2 (#4785)
- aaff918 build(deps): bump github.com/sashamelentyev/usestdlibvars from 1.25.0 to 1.26.0 (#4801)
- a0d2c83 build(deps): bump github.com/shirou/gopsutil/v3 from 3.24.4 to 3.24.5 (#4782)
- 2042b1f build(deps): bump go-simpler.org/sloglint from 0.7.0 to 0.7.1 (#4784)
- 327a78a build(deps): bump golang.org/x/tools from 0.21.0 to 0.22.0 (#4802)
- e1a8055 fix: SARIF format require issue column >= 1 (#4775)
- 88f60c8 fix: gomnd deprecated configuration compatibility (#4768)
- 8173166 fix: init empty result slice for SARIF printer (#4758)
- 02740ea intrange: add style preset (#4797)
- 615b873 unparam: bump to HEAD (#4786)
v1.59.0
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
- 4f5251d Support Sarif output (#4723)
- 73110df build(deps): bump github.com/Antonboom/testifylint from 1.2.0 to 1.3.0 (#4729)
- 62c83cc build(deps): bump github.com/BurntSushi/toml from 1.3.2 to 1.4.0 (#4746)
- 0cb1418 build(deps): bump github.com/go-critic/go-critic from 0.11.3 to 0.11.4 (#4738)
- e14ae4b build(deps): bump github.com/hashicorp/go-version from 1.6.0 to 1.7.0 (#4745)
- 2059b18 build(deps): bump github.com/securego/gosec/v2 from 2.20.0 to 5f0084eb01a9 (#4748)
- be1bb6d build(deps): bump go-simpler.org/sloglint from 0.6.0 to 0.7.0 (#4718)
- 08deff4 feat: add warning about disabled and deprecated linters (level 2) (#4742)
- b99d529 feat: allow the analysis of generated files (#4740)
- 867adaf feat: deprecate github-actions format (#4726)
- 4beae6a fix: remove errcheck defaults (#4734)
v1.58.2
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
- 7c87a9e build(deps): bump github.com/Antonboom/nilnil from 0.1.8 to 0.1.9 (#4716)
- 3fbc2f5 build(deps): bump github.com/fatih/color from 1.16.0 to 1.17.0 (#4725)
- 8fe47a9 build(deps): bump github.com/lasiar/canonicalheader from 1.0.6 to 1.1.1 (#4715)
- 8c4cfb6 build(deps): bump github.com/securego/gosec/v2 from 2.19.0 to 2.20.0 (#4724)
- 35eaf60 build(deps): bump go-simpler.org/musttag from 0.12.1 to 0.12.2 (#4710)
- 7f6606a build(deps): bump golangci/golangci-lint-action from 5.3.0 to 6.0.1 (#4722)
v1.58.1
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
- dc28153 build(deps): bump github.com/4meepo/tagalign from 1.3.3 to 1.3.4 (#4705)
- 9116634 build(deps): bump github.com/ghostiam/protogetter from 0.3.5 to 0.3.6 (#4707)
- d64e1de build(deps): bump golang.org/x/tools from 0.20.0 to 0.21.0 (#4706)
- ee97dbf build(deps): bump golangci/golangci-lint-action from 5.1.0 to 5.3.0 (#4701)
- 4532eb9 fix: gochecknoinits shadow name (#4698)
- 6767d7c fix: remove GitHub Action problem matchers (#4700)
v1.58.0
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.
- 7e2229a Add
pre-commit
hook to runconfig verify
(#4602) - b2df2f4 Add new linter canonicalheader (#4672)
- 95fc378 build(deps): bump github.com/Antonboom/errname from 0.1.12 to 0.1.13 (#4669)
- 4c3cc53 build(deps): bump github.com/Antonboom/nilnil from 0.1.7 to 0.1.8 (#4668)
- 2004f31 build(deps): bump github.com/butuzov/mirror from 1.1.0 to 1.2.0 (#4610)
- 4e56cba build(deps): bump github.com/ckaznocha/intrange from 0.1.1 to 0.1.2 (#4601)
- ed20557 build(deps): bump github.com/daixiang0/gci from 0.12.3 to 0.13.3 (#4522)
- dc51209 build(deps): bump github.com/daixiang0/gci from 0.13.3 to 0.13.4 (#4611)
- 8fb9856 build(deps): bump github.com/firefart/nonamedreturns from 1.0.4 to 1.0.5 (#4666)
- 8f59629 build(deps): bump github.com/go-critic/go-critic from 0.11.2 to 0.11.3 (#4619)
- 92cb311 build(deps): bump github.com/golangci/misspell from 0.4.1 to 0.5.1 (#4665)
- 3f37412 build(deps): bump github.com/golangci/revgrep from 0.5.2 to 0.5.3 (#4633)
- 1611bca build(deps): bump github.com/jjti/go-spancheck from 0.5.3 to 0.6.0 (#4670)
- e953689 build(deps): bump github.com/jjti/go-spancheck from 0.6.0 to 0.6.1 (#4679)
- 3f63db1 build(deps): bump github.com/karamaru-alpha/copyloopvar from 1.0.10 to 1.1.0 (#4632)
- e4dae2a build(deps): bump github.com/lasiar/canonicalheader from 1.0.5 to 1.0.6 (#4682)
- 28f7c39 build(deps): bump github.com/leonklingele/grouper from 1.1.1 to 1.1.2 (#4613)
- 8e8ad83 build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.0 to 2.2.1 (#4643)
- 813af3e build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.1 to 2.2.2 (#4688)
- 24bcca2 build(deps): bump github.com/polyfloyd/go-errorlint from 1.4.8 to 1.5.1 (#4690)
- e12d070 build(deps): bump github.com/ryancurrah/gomodguard from 1.3.1 to 1.3.2 (#4614)
- b937c19 build(deps): bump github.com/shirou/gopsutil/v3 from 3.24.2 to 3.24.3 (#4612)
- fa1cca8 build(deps): bump github.com/shirou/gopsutil/v3 from 3.24.3 to 3.24.4 (#4686)
- d2d77af build(deps): bump github.com/ultraware/whitespace from 0.1.0 to 0.1.1 (#4664)
- 54bfac8 build(deps): bump github.com/yeya24/promlinter from 0.2.0 to 0.3.0 (#4671)
- 1eab03d build(deps): bump gitlab.com/bosi/decorder from 0.4.1 to 0.4.2 (#4667)
- 5e1e22f build(deps): bump go-simpler.org/musttag from 0.10.0 to 0.11.0 (#4600)
- 7f70763 build(deps): bump go-simpler.org/musttag from 0.11.0 to 0.12.0 (#4621)
- b7c1d1a build(deps): bump go-simpler.org/musttag from 0.12.0 to 0.12.1 (#4626)
- ad7eab9 build(deps): bump go-simpler.org/musttag from 0.9.0 to 0.10.0 (#4579)
- 40d4872 build(deps): bump go-simpler.org/sloglint from 0.5.0 to 0.5.1 (#4644)
- 7ea621b build(deps): bump go-simpler.org/sloglint from 0.5.1 to 0.6.0 (#4645)
- 1f46a11 build(deps): bump golang.org/x/tools from 0.19.0 to 0.20.0 (#4620)
- 87db2a3 build(deps): bump golangci/golangci-lint-action from 4.0.0 to 5.1.0 (#4684)
- 83a91b4 build(deps): bump peaceiris/actions-gh-pages from 3 to 4 (#4625)
- b7c7a1d execinquery: deprecation (#4652)
- c00c1a5 feat: add fatcontext linter (#4583)
- 5a9f5c1 feat: deprecate usage of linter alternative names (#4562)
- a7868b3 feat: err113 analyzer name (#4567)
- 38fac89 feat: log an error when using previously deprecated linters (#4681)
- 288c847 feat: replace gomnd by mnd (#4572)
- 28b3813 feat: use problem matchers for GitHub Action format (#4685)
- a706941 fix: JSON schema about severities (#4617)
- c1f9f54 fix: don't hide typecheck errors inside diff processor (#4674)
- 44c070a fix: keep only typecheck issues (#4640)
- dac4ba3 fix: remove help display on error with verify command (#4597)
- 2b2fc8c fix: skip go.mod report inside autogenerated_exclude processor (#4663)
- 15c57c1 fix: speed up "fast" linters (#4653)
- 003b048 fix: use plugin version (#4655)
- 0260ec8 unparam: bump to HEAD (#4689)
v1.57.2
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
- 94a0179 build(deps): bump github.com/ckaznocha/intrange from 0.1.0 to 0.1.1 (#4570)
- 9558299 build(deps): bump github.com/jgautheron/goconst from 1.7.0 to 1.7.1 (#4555)
- b78225b build(deps): bump github.com/karamaru-alpha/copyloopvar from 1.0.8 to 1.0.9 (#4565)
- 5a66842 build(deps): bump github.com/karamaru-alpha/copyloopvar from 1.0.9 to 1.0.10 (#4584)
- afd670b build(deps): bump github.com/kkHAIKE/contextcheck from 1.1.4 to 1.1.5 (#4564)
- 03acb64 build(deps): bump github.com/ldez/gomoddirectives from 0.2.3 to 0.2.4 (#4580)
- 4d2fa7b build(deps): bump github.com/nunnatsa/ginkgolinter from 0.16.1 to 0.16.2 (#4569)
- 66ec75e fix: display warnings on deprecated linter options (#4568)
- 77a8601 fix: hide useless warning (#4587)
- 3cff868 fix: missing output format (#4574)
- 5ae78cd fix: the TeamCity inspectionType service message (#4573)
v1.57.1
golangci-lint is a free and open-source project, built by people in their free time.
Also, the linter authors are an important part of golangci-lint.
If you use and appreciate golangci-lint please think to support us (golangci-lint maintainers and linter authors). β€οΈ
The most important changes are detailed here: https://golangci-lint.run/product/changelog/#v1571
Changelog
v1.57.0
golangci-lint is a free and open-source project, built by people in their free time.
Also, the linter authors are an important part of golangci-lint.
If you use and appreciate golangci-lint please think to support us (golangci-lint maintainers and linter authors). β€οΈ
The most important changes are detailed here: https://golangci-lint.run/product/changelog/#v1570
- Deprecated linters are inactivated, you still need to disable them if you are using
enable-all
. - Deprecated CLI flags (about linter settings and
deadline
) have been removed.
Changelog
- 2bcc010 Revert "fix: deprecation message related to UseDefaultSkipDirs (#4533)"
- 571f2fc build(deps): bump github.com/Abirdcfly/dupword from 0.0.13 to 0.0.14 (#4398)
- 4ee10a2 build(deps): bump github.com/Antonboom/testifylint from 1.1.2 to 1.1.3 (#4447)
- 61f2f70 build(deps): bump github.com/Antonboom/testifylint from 1.1.3 to 1.2.0 (#4449)
- 02ea91d build(deps): bump github.com/alexkohler/nakedret/v2 from 2.0.2 to 2.0.4 (#4540)
- e5d2bc9 build(deps): bump github.com/catenacyber/perfsprint from 0.6.0 to 0.7.0 (#4386)
- 2443929 build(deps): bump github.com/catenacyber/perfsprint from 0.7.0 to 0.7.1 (#4402)
- b07bd18 build(deps): bump github.com/daixiang0/gci from 0.12.1 to 0.12.3 (#4400)
- 9c492af build(deps): bump github.com/daixiang0/gci from 0.12.3 to 0.13.0 (#4429)
- 17e736f build(deps): bump github.com/denis-tingaikin/go-headerfrom 0.4.3 to 0.5.0 (#4396)
- 584520c build(deps): bump github.com/ghostiam/protogetter from 0.3.4 to 0.3.5 (#4539)
- f6e2369 build(deps): bump github.com/go-critic/go-critic from 0.11.1 to 0.11.2 (#4430)
- addd06c build(deps): bump github.com/golangci/plugin-module-register to 0.1.0 (#4510)
- d06296e build(deps): bump github.com/golangci/unconvert to HEAD (#4473)
- 76ce09b build(deps): bump github.com/jjti/go-spancheck from 0.5.2 to 0.5.3 (#4414)
- df70758 build(deps): bump github.com/karamaru-alpha/copyloopvar from 1.0.4 to 1.0.8 (#4444)
- f4e33e0 build(deps): bump github.com/kunwardeep/paralleltest from 1.0.9 to 1.0.10 (#4394)
- f837070 build(deps): bump github.com/nunnatsa/ginkgolinter from 0.15.2 to 0.16.0 (#4530)
- f2d4110 build(deps): bump github.com/nunnatsa/ginkgolinter from 0.16.0 to 0.16.1 (#4531)
- 485cb6a build(deps): bump github.com/ryancurrah/gomodguard from 1.3.0 to 1.3.1 (#4538)
- d36c383 build(deps): bump github.com/shirou/gopsutil/v3 from 3.24.1 to 3.24.2 (#4446)
- b5c339f build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#4448)
- bcd015e build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.8.1 to 2.8.3 (#4403)
- ce27934 build(deps): bump go-simpler.org/musttag from 0.8.0 to 0.9.0 (#4428)
- 2c0a8ee build(deps): bump go-simpler.org/sloglint from 0.4.0 to 0.5.0 (#4523)
- 6628d21 build(deps): bump golang.org/x/oauth2 from 0.17.0 to 0.18.0 in /scripts/gen_github_action_config (#4464)
- 603e568 build(deps): bump golang.org/x/tools from 0.18.0 to 0.19.0 (#4462)
- c6ac5a1 build(deps): bump google.golang.org/protobuf from 1.31.0 to 1.33.0 (#4503)
- 4068bb7 build(deps): bump honnef.co/go/tools from 0.4.6 to 0.4.7 (#4410)
- 5cb1656 build(deps): downgrade github.com/daixiang0/gci from 0.13.0 to 0.12.3 (#4484)
- 98f0a9e chore: nancy
- 51a963f chore: simplify comparators (#4499)
- 2417da1 feat: add copyloopvar linter (#4382)
- b96ff83 feat: add intrange linter (#4378)
- 0683d45 feat: add sort-order option (#4467)
- eaafdf3 feat: add verify command (#4527)
- 803970f feat: allow running only a specific linter without modifying the file configuration (#4438)
- b1eed50 feat: automatically adjust the maximum concurrency to the container CPU quota (#4441)
- d37a3e0 feat: create output directory (#4524)
- 64492b5 feat: disable copyloopvar and intrange on Go < 1.22 (#4397)
- cba35e1 feat: improve 'no go files to analyze' message (#4536)
- a087808 feat: inactivate deprecated linters (#4436)
- 167204c feat: new custom linters system (#4437)
- e3ed3ba feat: new output.formats file configuration syntax (#4521)
- 3d91352 feat: option to not override severity from linters (#4452)
- b05e397 feat: option to strictly follow Go autogenerated file convention (#4507)
- 39617e4 feat: rename exclude-autogenerated-strict to exclude-generated-strict (#4514)
- 4b7a55a feat: replace
run.skip-xxx
options byissues.exclude-xxx
options (#4509) - ec52d3c feat: syntax to not override severity from linters (#4472)
- 1cabafc feat: use gosec severities (#4470)
- bd47701 fix: deprecation message related to UseDefaultSkipDirs (#4533)
- ddc703d fix: disable temporarily httpresponse from govet (#4528)
- 8f2459b fix: move show-stats field from run to output (#4439)
- c902b8e fix: panic when concurrency=0 (#4477)
- 797d3bb fix: rule severity is required (#4469)
- 7e2840b fix: store and read severity from linters in the cache (#4468)
- 2413f68 fix: use GOTOOLCHAIN=auto inside the Docker images (#4532)
- 1b0dbb0 fix: use first issue without inline on mergeLineIssues on multiplie issues (#3316)
- c65868c gocritic: support of enable-all and disable-all options (#4335)
- 3dbe882 govet: add a warning about the deprecation of check-shadowing (#4535)
- 6914447 govet: fix check-shadowing (#4534)
- 2a2eebd install.sh: set executable bit for Unix (#4408)
- e6720b8 misspell: add extra-words (#4401)
- d7a461a revive: add exclude option (#4365)
v1.56.2
golangci-lint is a free and open-source project, built by people in their free time.
Also, the linter authors are an important part of golangci-lint.
If you use and appreciate golangci-lint please think to support us (golangci-lint maintainers and linter authors). β€οΈ
Changelog
- 6f26840 build(deps): bump github.com/Antonboom/testifylint from 1.1.1 to 1.1.2 (#4371)
- 5a78c8a build(deps): bump github.com/bombsimon/wsl/v4 from 4.2.0 to 4.2.1 (#4367)
- 71eae84 build(deps): bump github.com/go-critic/go-critic from 0.11.0 to 0.11.1 (#4388)
- 58a724a build(deps): bump github.com/sashamelentyev/usestdlibvars from 1.24.0 to 1.25.0 (#4390)
- a35de8c build(deps): bump github.com/securego/gosec/v2 from 2.18.2 to 2.19.0 (#4389)
- 21bb543 build(deps): bump golang.org/x/oauth2 from 0.16.0 to 0.17.0 in /scripts/gen_github_action_config (#4380)
- 5513d3c build(deps): bump golang.org/x/tools from 0.17.0 to 0.18.0 (#4387)
- 5357885 build(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 (#4379)