Releases: golangci/golangci-lint
v1.56.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). β€οΈ
Changelog
- a25592b build(deps): bump github.com/Antonboom/testifylint from 1.1.0 to 1.1.1 (#4359)
- 828b6b4 build(deps): bump github.com/kisielk/errcheck from 1.6.3 to 1.7.0 (#4358)
- ca7b7a4 build(deps): bump github.com/mgechev/revive from 1.3.6 to 1.3.7 (#4355)
- b525f2b govet: disable loopclosure with go1.22 (#4357)
v1.56.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). β€οΈ
Important
testifylint
has breaking changes about enabling/disabling checks:
-
If you were using the option
enable
with a filtered list of checks, you should either adddisable-all: true
(1) or usedisable
field (2).# Example (1) testifylint: disable-all: true enable: - bool-compare - compares - empty - error-is-as - error-nil - expected-actual - go-require - float-compare - len - nil-compare - require-error # - suite-dont-use-pkg - suite-extra-assert-call - suite-thelper
# Example (2) testifylint: disable: - suite-dont-use-pkg
Changelog
- bc169eb build(deps): bump actions/cache from 3 to 4 (#4329)
- 390acc9 build(deps): bump actions/setup-go from 4 to 5 (#4250)
- 4200194 build(deps): bump github.com/Antonboom/testifylint from 0.2.3 to 1.0.1 (#4186)
- a12dde0 build(deps): bump github.com/Antonboom/testifylint from 1.0.1 to 1.0.2 (#4193)
- 7656f82 build(deps): bump github.com/Antonboom/testifylint from 1.0.2 to 1.1.0 (#4330)
- 1a00b40 build(deps): bump github.com/GaijinEntertainment/go-exhaustruct/v3 from 3.1.0 to 3.2.0 (#4304)
- affa7d1 build(deps): bump github.com/OpenPeeDeeP/depguard/v2 from 2.1.0 to 2.2.0 (#4207)
- 553161d build(deps): bump github.com/alecthomas/go-check-sumtype from 0.1.3 to 0.1.4 (#4317)
- e32f2f3 build(deps): bump github.com/bombsimon/wsl/v4 from 3.4.0 to 4.2.0 (#4215)
- 6e09a20 build(deps): bump github.com/butuzov/ireturn from 0.2.2 to 0.3.0 (#4352)
- 2b7c777 build(deps): bump github.com/catenacyber/perfsprint from 0.2.0 to 0.3.0 (#4157)
- be5c2e9 build(deps): bump github.com/catenacyber/perfsprint from 0.3.0 to 0.3.1 (#4199)
- 84442f2 build(deps): bump github.com/catenacyber/perfsprint from 0.3.1 to 0.4.0 (#4236)
- 5083ba8 build(deps): bump github.com/catenacyber/perfsprint from 0.4.0 to 0.5.0 (#4258)
- 4ea9468 build(deps): bump github.com/catenacyber/perfsprint from 0.5.0 to 0.6.0 (#4346)
- 1ead82f build(deps): bump github.com/cloudflare/circl from 1.3.3 to 1.3.7 in /tools (#4307)
- 815556a build(deps): bump github.com/daixiang0/gci from 0.11.2 to 0.12.0 (#4260)
- 0264eaa build(deps): bump github.com/daixiang0/gci from 0.12.0 to 0.12.1 (#4293)
- da3eb31 build(deps): bump github.com/fatih/color from 1.15.0 to 1.16.0 (#4194)
- 97cb905 build(deps): bump github.com/ghostiam/protogetter from 0.2.3 to 0.3.1 (#4167)
- 2640ed7 build(deps): bump github.com/ghostiam/protogetter from 0.3.1 to 0.3.3 (#4185)
- 3ff4163 build(deps): bump github.com/ghostiam/protogetter from 0.3.3 to 0.3.4 (#4327)
- 87d55d9 build(deps): bump github.com/go-critic/go-critic from 0.10.0 to 0.11.0 (#4295)
- 790c163 build(deps): bump github.com/go-critic/go-critic from 0.9.0 to 0.10.0 (#4249)
- 32dd629 build(deps): bump github.com/go-git/go-git/v5 from 5.4.2 to 5.11.0 in /tools (#4288)
- 77cfc00 build(deps): bump github.com/gordonklaus/ineffassign from 0.0.0-20230610083614-0e73809eb601 to 0.1.0 (#4173)
- 53e2c53 build(deps): bump github.com/jgautheron/goconst from 1.6.0 to 1.7.0 (#4200)
- 1bb8c57 build(deps): bump github.com/jjti/go-spancheck from 0.4.2 to 0.5.2 (#4316)
- 77ffe36 build(deps): bump github.com/kunwardeep/paralleltest from 1.0.8 to 1.0.9 (#4256)
- 8301163 build(deps): bump github.com/mgechev/revive from 1.3.4 to 1.3.5 (#4305)
- 057c296 build(deps): bump github.com/mgechev/revive from 1.3.5 to 1.3.6 (#4314)
- b314655 build(deps): bump github.com/nishanths/exhaustive from 0.11.0 to 0.12.0 (#4195)
- 1c7e42a build(deps): bump github.com/nunnatsa/ginkgolinter from 0.14.1 to 0.15.1 (#4248)
- f921f00 build(deps): bump github.com/nunnatsa/ginkgolinter from 0.15.1 to 0.15.2 (#4282)
- dfd0984 build(deps): bump github.com/polyfloyd/go-errorlint from 1.4.5 to 1.4.6 (#4234)
- 42cdc30 build(deps): bump github.com/polyfloyd/go-errorlint from 1.4.6 to 1.4.7 (#4245)
- 1cfbe0d build(deps): bump github.com/polyfloyd/go-errorlint from 1.4.7 to 1.4.8 (#4337)
- a0d0401 build(deps): bump github.com/shirou/gopsutil/v3 from 3.23.10 to 3.23.11 (#4233)
- 8f4b1a7 build(deps): bump github.com/shirou/gopsutil/v3 from 3.23.11 to 3.23.12 (#4296)
- ee98b50 build(deps): bump github.com/shirou/gopsutil/v3 from 3.23.12 to 3.24.1 (#4344)
- 0d5efec build(deps): bump github.com/sigstore/cosign from 1.13.1 to 1.13.2 in /tools (#4251)
- 4c6c871 build(deps): bump github.com/tetafro/godot from 1.4.15 to 1.4.16 (#4192)
- 57bc603 build(deps): bump github.com/ykadowak/zerologlint from 0.1.3 to 0.1.4 (#4222)
- 5cb4973 build(deps): bump github.com/ykadowak/zerologlint from 0.1.4 to 0.1.5 (#4235)
- cd0d344 build(deps): bump github/codeql-action from 2 to 3 (#4266)
- 89bfdc0 build(deps): bump go-simpler.org/musttag from v0.7.2 to v0.8.0 (#4201)
- f17fef3 build(deps): bump go-simpler.org/sloglint from 0.1.2 to 0.2.0 (#4166)
- b702218 build(deps): bump go-simpler.org/sloglint from 0.2.0 to 0.3.0 (#4183)
- 27e99b5 build(deps): bump go-simpler.org/sloglint from 0.3.0 to 0.4.0 (#4257)
- 2060066 build(deps): bump golang.org/x/crypto from 0.14.0 to 0.17.0 in /tools (#4269)
- 0baed20 build(deps): bump golang.org/x/oauth2 from 0.13.0 to 0.14.0 in /scripts/gen_github_action_config (#4203)
- 855d443 build(deps): bump golang.org/x/oauth2 from 0.14.0 to 0.15.0 in /scripts/gen_github_action_config (#4223)
- 75d5708 build(deps): bump golang.org/x/oauth2 from 0.15.0 to 0.16.0 in /scripts/gen_github_action_config (#4308)
- cf2591a build(deps): bump golang.org/x/tools from 0.14.0 to 0.15.0 (#4191)
- de98cc0 build(deps): bump golang.org/x/tools from 0.15.0 to 0.16.0 (#4232)
- 6b535ae build(deps): bump golang.org/x/tools from 0.16.0 to 0.16.1 (#4259)
- 4bf463a build(deps): bump golang.org/x/tools from 0.16.1 to 0.17.0 (#4315)
- 11bf3d6 build(deps): bump mvdan.cc/gofumpt from 0.5.0 to 0.6.0 (#4338)
- 71ffbf2 build(deps): bump mvdan.cc/unparam from 20221223090309-7455f1af531d to 20240104100049-c549a3470d14 (#4333)
- a7c175b build(deps): bump peter-evans/create-pull-request from 5 to 6 (#4348)
- 32e5b2b build(deps): github.com/macabu/inamedparam from 0.1.2 to 0.1.3 (#4261)
- 4384969 chore: build doc on PR
- 7fc341e devs: fix typo in testdata for gochecknoglobals (#4320)
- d23c354 feat: add
spancheck
linter (#4290) - b3ffe70 feat: implement stats per linter with a flag (#4341)
- 95bc7a8 fix: make versioning inside Docker image consistent with binaries (#4279)
- ad4a6b2 fix: parse Go RC version (#4319)
- 192ee89 go1.22 support (#4272)
- d99c02c misspell: add mode option (#4275)
- f269abe sloglint: add static-msg option (#4213)
- 78742ac whitespace: update after moving to the
analysis
package (#4003)
v1.55.2
If you use and appreciate golangci-lint please think to support us (golangci-lint maintainers and linter authors). β€οΈ
Changelog
v1.55.1
If you use and appreciate golangci-lint please think to support us (golangci-lint maintainers and linter authors). β€οΈ
Changelog
- 3d58209 build(deps): bump actions/setup-node from 3 to 4 (#4155)
- 5c19d1d build(deps): bump github.com/golangci/revgrep from v0.5.0 to v0.5.2 (#4154)
- 4068be1 build(deps): bump github.com/securego/gosec/v2 from 2.18.1 to 2.18.2 (#4153)
- 9b20d49 output: convert backslashes to forward slashes for GitHub Action annotations printer (#4149)
v1.55.0
If you use and appreciate golangci-lint please think to support us (golangci-lint maintainers and linter authors). β€οΈ
Changelog
- 4b188db Add "inamedparam": checks for interface method with unnamed params (#3793)
- 2d5d29f Add
testifylint
linter (#4103) - 3c34799 Add a pre-commit hook to check all files (#4046)
- de1c391 Add perfsprint linter (#3714)
- 8c178d3 add protogetter linter (#4069)
- c65ab4b build(deps): bump actions/checkout from 3 to 4 (#4065)
- b74ffbb build(deps): bump docker/build-push-action from 4 to 5 (#4094)
- b974c30 build(deps): bump docker/setup-buildx-action from 2 to 3 (#4093)
- 47d7785 build(deps): bump docker/setup-qemu-action from 2 to 3 (#4095)
- cf93cf5 build(deps): bump github.com/4meepo/tagalign from 1.3.2 to 1.3.3 (#4143)
- 95edd30 build(deps): bump github.com/Abirdcfly/dupword from 0.0.12 to 0.0.13 (#4104)
- 5b40213 build(deps): bump github.com/breml/bidichk from 0.2.4 to 0.2.6 (#4044)
- c6eae6c build(deps): bump github.com/breml/bidichk from 0.2.6 to 0.2.7 (#4101)
- f4b0ca7 build(deps): bump github.com/breml/errchkjson from 0.3.1 to 0.3.5 (#4042)
- c9956e8 build(deps): bump github.com/breml/errchkjson from 0.3.5 to 0.3.6 (#4102)
- 64e382b build(deps): bump github.com/butuzov/ireturn from 0.2.0 to 0.2.1 (#4142)
- cc02271 build(deps): bump github.com/daixiang0/gci from 0.11.0 to 0.11.1 (#4068)
- 615a52b build(deps): bump github.com/daixiang0/gci from 0.11.1 to 0.11.2 (#4090)
- 0605100 build(deps): bump github.com/ghostiam/protogetter from 0.2.2 to 0.2.3 (#4130)
- f18d712 build(deps): bump github.com/golangci/revgrep from 745bb2f7c2e6 to v0.5.0 (#4064)
- a69976a build(deps): bump github.com/jgautheron/goconst from 1.5.1 to 1.6.0 (#4055)
- 663d002 build(deps): bump github.com/mgechev/revive from 1.3.2 to 1.3.3 (#4043)
- eeb2088 build(deps): bump github.com/mgechev/revive from 1.3.3 to 1.3.4 (#4087)
- 0e82ef5 build(deps): bump github.com/nunnatsa/ginkgolinter from 0.13.5 to 0.14.0 (#4117)
- 452410c build(deps): bump github.com/polyfloyd/go-errorlint from 1.4.4 to 1.4.5 (#4078)
- b673fb7 build(deps): bump github.com/ryanrolds/sqlclosecheck from 0.4.0 to 0.5.1 (#4071)
- 823f02d build(deps): bump github.com/securego/gosec/v2 from 2.17.0 to 2.18.0 (#4120)
- e96af3a build(deps): bump github.com/securego/gosec/v2 from 2.18.0 to 2.18.1 (#4131)
- 2858394 build(deps): bump github.com/shirou/gopsutil/v3 from 3.23.7 to 3.23.8 (#4063)
- 1af49e3 build(deps): bump github.com/shirou/gopsutil/v3 from 3.23.8 to 3.23.9 (#4111)
- 22c6434 build(deps): bump github.com/tetafro/godot from 1.4.14 to 1.4.15 (#4077)
- 0946f2c build(deps): bump github.com/uudashr/gocognit from 1.0.7 to 1.1.1 (#4129)
- 904cec8 build(deps): bump github.com/uudashr/gocognit from 1.1.0 to 1.1.2 (#4145)
- ffb9608 build(deps): bump github.com/uudashr/gocognit from 1.1.1 to 1.1.0 (#4144)
- 865b93a build(deps): bump github.com/xen0n/gosmopolitan from 1.2.1 to 1.2.2 (#4070)
- 4b72aa5 build(deps): bump gitlab.com/bosi/decorder from 0.4.0 to 0.4.1 (#4056)
- 4b83e50 build(deps): bump golang.org/x/net from 0.10.0 to 0.17.0 in /tools (#4124)
- 6cd1bfd build(deps): bump golang.org/x/net from 0.16.0 to 0.17.0 in /scripts/gen_github_action_config (#4125)
- efb52af build(deps): bump golang.org/x/oauth2 from 0.11.0 to 0.12.0 in /scripts/gen_github_action_config (#4079)
- 2b73b3a build(deps): bump golang.org/x/oauth2 from 0.12.0 to 0.13.0 in /scripts/gen_github_action_config (#4122)
- 28d88a1 build(deps): bump golang.org/x/tools from 0.12.0 to 0.13.0 (#4066)
- dd58dd5 build(deps): bump golang.org/x/tools from 0.13.0 to 0.14.0 (#4119)
- 75b6a08 build(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 (#4036)
- fd06dca build(deps): bump goreleaser/goreleaser-action from 4 to 5 (#4080)
- 41bfce9 build(deps): bump honnef.co/go/tools from 0.4.5 to 0.4.6 (#4083)
- 69d6cc9 feat: add
gochecksumtype
linter (#3671) - 39c5fd1 feat: add
sloglint
linter (#4133) - 3d8ae00 feat: update gofmt and goimports (#4115)
- 4254fad fix: update gofmt (#4141)
- 6491317 govet: add
appends
analyzer (#4127) - bce3dfd unused: support passing in options (#4086)
v1.54.2
If you use and appreciate golangci-lint please think to support us (golangci-lint maintainers and linter authors). β€οΈ
Changelog
- 07fb6ff build(deps): bump github.com/Antonboom/errname from 0.1.10 to 0.1.12 (#4026)
- 2de4bc6 build(deps): bump github.com/Antonboom/nilnil from 0.1.5 to 0.1.7 (#4024)
- 8000aba build(deps): bump github.com/nunnatsa/ginkgolinter from 0.13.3 to 0.13.5 (#4019)
- ac0627d build(deps): bump github.com/polyfloyd/go-errorlint from 1.4.3 to 1.4.4 (#4030)
- f787bc7 build(deps): bump github.com/sashamelentyev/usestdlibvars from 1.23.0 to 1.24.0 (#4016)
- fb50d99 build(deps): bump github.com/securego/gosec/v2 from 2.16.0 to 2.17.0 (#4015)
- 2741ab2 build(deps): bump github.com/tetafro/godot from 1.4.11 to 1.4.14 (#4029)
- be49b5a build(deps): bump go.tmz.dev/musttag from 0.7.1 to 0.7.2 (#4017)
- 3736e09 build(deps): bump honnef.co/go/tools from 0.4.3 to 0.4.4 (#4018)
- 3db5817 build(deps): bump honnef.co/go/tools from 0.4.4 to 0.4.5 (#4022)
- 411e0bb fix: add all directories as safe git directories inside the Docker image (#4034)
- a5eaf9f govet: add directive and slog passes (#4028)
v1.54.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 linters authors). β€οΈ
Changelog
v1.54.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 linters authors). β€οΈ
Changelog
- ffe688c build(deps): bump github.com/4meepo/tagalign from 1.2.2 to 1.3.1 (#3979)
- e555470 build(deps): bump github.com/4meepo/tagalign from 1.3.1 to 1.3.2 (#3980)
- 68b4988 build(deps): bump github.com/Abirdcfly/dupword from 0.0.11 to 0.0.12 (#3944)
- d58342f build(deps): bump github.com/GaijinEntertainment/go-exhaustruct/v3 from 2.3.0 to 3.1.0 (#3963)
- 6e31512 build(deps): bump github.com/ashanbrown/forbidigo from 1.5.3 to 1.6.0 (#3942)
- c37828a build(deps): bump github.com/daixiang0/gci from 0.10.1 to 0.11.0 (#3994)
- 78462c2 build(deps): bump github.com/go-critic/go-critic from 0.8.1 to 0.8.2 (#3978)
- cecd497 build(deps): bump github.com/golangci/misspell 0.4.0 to 0.4.1 (#3918)
- 1c67f59 build(deps): bump github.com/kunwardeep/paralleltest from 1.0.7 to 1.0.8 (#3985)
- fc5a8f9 build(deps): bump github.com/nunnatsa/ginkgolinter from 0.12.1 to 0.12.2 (#3937)
- 91afddc build(deps): bump github.com/nunnatsa/ginkgolinter from 0.12.2 to 0.13.0 (#3962)
- 52793e7 build(deps): bump github.com/nunnatsa/ginkgolinter from 0.13.0 to 0.13.3 (#3972)
- 0f31e51 build(deps): bump github.com/polyfloyd/go-errorlint from 1.4.2 to 1.4.3 (#3935)
- c406ca5 build(deps): bump github.com/shirou/gopsutil/v3 from 3.23.5 to 3.23.6 (#3936)
- 1a32d40 build(deps): bump github.com/shirou/gopsutil/v3 from 3.23.6 to 3.23.7 (#3989)
- 2c0224f build(deps): bump github.com/ultraware/funlen from 0.0.3 to 0.1.0 (#3988)
- 67dd65f build(deps): bump github.com/uudashr/gocognit from 1.0.6 to 1.0.7 (#3961)
- bbcabb7 build(deps): bump github.com/ykadowak/zerologlint from 0.1.2 to 0.1.3 (#3923)
- 17f6fcc build(deps): bump gitlab.com/bosi/decorder from 0.2.3 to 0.4.0 (#3959)
- a303529 build(deps): bump go.tmz.dev/musttag from 0.7.0 to 0.7.1 (#3924)
- a6caf8b build(deps): bump golang.org/x/oauth2 from 0.10.0 to 0.11.0 in /scripts/gen_github_action_config (#3991)
- 043c368 build(deps): bump golang.org/x/oauth2 from 0.8.0 to 0.9.0 in /scripts/gen_github_action_config (#3920)
- a56dfe8 build(deps): bump golang.org/x/oauth2 from 0.9.0 to 0.10.0 in /scripts/gen_github_action_config (#3946)
- 6b7a964 build(deps): bump golang.org/x/tools from 0.10.0 to 0.11.0 (#3943)
- 29f9717 build(deps): bump golang.org/x/tools from 0.11.1 to 0.12.0 (#3992)
- 7cf30e7 build(deps): bump golang.org/x/tools from 0.9.3 to 0.10.0 (#3914)
- 494bb07 build(deps): bump semver from 5.7.0 to 5.7.2 in /tools (#3948)
- e3ff6e7 build(deps): bump semver from 5.7.1 to 5.7.2 in /.github/contributors (#3947)
- 9d32f6e chore: fix nancy
- 79c78d6 feat: explain typecheck and remove it from the linter list (#3929)
- 6c7aba6 fix: include custom linters in
enable-all
(#3911) - c1d8c56 fix: trim Go version (#3995)
- e0a8bd8 go1.21 support (#3922)
- 28f0560 gofmt: autofix missing newline at EOF (#3917)
- 25c2b07 plugin: allow to use settings for plugins (#3887)
v1.53.3
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 linters authors). β€οΈ
Changelog
- 2dcd82f Add support for generating illumos/amd64 targeted builds (#3907)
- d360871 build(deps): bump actions/setup-go from 3 to 4 (#3902)
- 0112521 build(deps): bump github.com/BurntSushi/toml from 1.3.0 to 1.3.2 (#3899)
- c2ccfe6 build(deps): bump github.com/alexkohler/nakedret/v2 from 2.0.1 to 2.0.2 (#3905)
- d6f3d71 build(deps): bump github.com/ashanbrown/forbidigo from 1.5.1 to 1.5.3 (#3904)
- 70c1e77 build(deps): bump github.com/bkielbasa/cyclop from 1.2.0 to 1.2.1 (#3888)
- ef90973 build(deps): bump github.com/nishanths/exhaustive from 0.10.0 to 0.11.0 (#3900)
- 829af92 build(deps): bump github.com/nunnatsa/ginkgolinter from 0.12.2 to 0.12.1 (#3892)
- c9d759e build(deps): bump github.com/sirupsen/logrus from 1.9.2 to 1.9.3 (#3886)
- 92f8abd build(deps): bump github.com/ykadowak/zerologlint from 0.1.1 to 0.1.2 (#3889)
- dfbc86c build(deps): bump golangci/golangci-lint-action from 3.4.0 to 3.5.0 (#3890)
- 98b95a9 build(deps): bump golangci/golangci-lint-action from 3.5.0 to 3.6.0 (#3903)
- 8c519af codeclimate: less memory allocation (#3882)
- 4f4362c ineffassign: bump to HEAD (#3898)
v1.53.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 linters authors). β€οΈ
https://golangci-lint.run/product/thanks/
Changelog
- 59a7aaf build(deps): bump github.com/OpenPeeDeeP/depguard/v2 from v2.0.1 to 2.1.0 (#3883)
- 62d1913 build(deps): bump github.com/shirou/gopsutil/v3 from 3.23.4 to 3.23.5 (#3875)
- f6c61a5 build(deps): bump golang.org/x/tools from 0.9.2 to 0.9.3 (#3874)
- 68be5ba depguard: throw error only when the linter is called (#3880)