v1.56.0
版本发布时间: 2024-02-07 22:51:54
golangci/golangci-lint最新发布版本:v1.60.2(2024-08-21 04:26:35)
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). :heart:
Changelog
- bc169eb6 build(deps): bump actions/cache from 3 to 4 (#4329)
- 390acc9f build(deps): bump actions/setup-go from 4 to 5 (#4250)
- 42001943 build(deps): bump github.com/Antonboom/testifylint from 0.2.3 to 1.0.1 (#4186)
- a12dde07 build(deps): bump github.com/Antonboom/testifylint from 1.0.1 to 1.0.2 (#4193)
- 7656f82c build(deps): bump github.com/Antonboom/testifylint from 1.0.2 to 1.1.0 (#4330)
- 1a00b409 build(deps): bump github.com/GaijinEntertainment/go-exhaustruct/v3 from 3.1.0 to 3.2.0 (#4304)
- affa7d11 build(deps): bump github.com/OpenPeeDeeP/depguard/v2 from 2.1.0 to 2.2.0 (#4207)
- 553161d9 build(deps): bump github.com/alecthomas/go-check-sumtype from 0.1.3 to 0.1.4 (#4317)
- e32f2f3f build(deps): bump github.com/bombsimon/wsl/v4 from 3.4.0 to 4.2.0 (#4215)
- 6e09a205 build(deps): bump github.com/butuzov/ireturn from 0.2.2 to 0.3.0 (#4352)
- 2b7c777b build(deps): bump github.com/catenacyber/perfsprint from 0.2.0 to 0.3.0 (#4157)
- be5c2e93 build(deps): bump github.com/catenacyber/perfsprint from 0.3.0 to 0.3.1 (#4199)
- 84442f26 build(deps): bump github.com/catenacyber/perfsprint from 0.3.1 to 0.4.0 (#4236)
- 5083ba8c build(deps): bump github.com/catenacyber/perfsprint from 0.4.0 to 0.5.0 (#4258)
- 4ea9468c build(deps): bump github.com/catenacyber/perfsprint from 0.5.0 to 0.6.0 (#4346)
- 1ead82ff build(deps): bump github.com/cloudflare/circl from 1.3.3 to 1.3.7 in /tools (#4307)
- 815556a8 build(deps): bump github.com/daixiang0/gci from 0.11.2 to 0.12.0 (#4260)
- 0264eaa5 build(deps): bump github.com/daixiang0/gci from 0.12.0 to 0.12.1 (#4293)
- da3eb313 build(deps): bump github.com/fatih/color from 1.15.0 to 1.16.0 (#4194)
- 97cb9054 build(deps): bump github.com/ghostiam/protogetter from 0.2.3 to 0.3.1 (#4167)
- 2640ed7c build(deps): bump github.com/ghostiam/protogetter from 0.3.1 to 0.3.3 (#4185)
- 3ff41630 build(deps): bump github.com/ghostiam/protogetter from 0.3.3 to 0.3.4 (#4327)
- 87d55d9c build(deps): bump github.com/go-critic/go-critic from 0.10.0 to 0.11.0 (#4295)
- 790c1632 build(deps): bump github.com/go-critic/go-critic from 0.9.0 to 0.10.0 (#4249)
- 32dd629c build(deps): bump github.com/go-git/go-git/v5 from 5.4.2 to 5.11.0 in /tools (#4288)
- 77cfc00d build(deps): bump github.com/gordonklaus/ineffassign from 0.0.0-20230610083614-0e73809eb601 to 0.1.0 (#4173)
- 53e2c534 build(deps): bump github.com/jgautheron/goconst from 1.6.0 to 1.7.0 (#4200)
- 1bb8c57d build(deps): bump github.com/jjti/go-spancheck from 0.4.2 to 0.5.2 (#4316)
- 77ffe366 build(deps): bump github.com/kunwardeep/paralleltest from 1.0.8 to 1.0.9 (#4256)
- 8301163c build(deps): bump github.com/mgechev/revive from 1.3.4 to 1.3.5 (#4305)
- 057c296c build(deps): bump github.com/mgechev/revive from 1.3.5 to 1.3.6 (#4314)
- b3146552 build(deps): bump github.com/nishanths/exhaustive from 0.11.0 to 0.12.0 (#4195)
- 1c7e42ac build(deps): bump github.com/nunnatsa/ginkgolinter from 0.14.1 to 0.15.1 (#4248)
- f921f000 build(deps): bump github.com/nunnatsa/ginkgolinter from 0.15.1 to 0.15.2 (#4282)
- dfd09848 build(deps): bump github.com/polyfloyd/go-errorlint from 1.4.5 to 1.4.6 (#4234)
- 42cdc306 build(deps): bump github.com/polyfloyd/go-errorlint from 1.4.6 to 1.4.7 (#4245)
- 1cfbe0d1 build(deps): bump github.com/polyfloyd/go-errorlint from 1.4.7 to 1.4.8 (#4337)
- a0d04014 build(deps): bump github.com/shirou/gopsutil/v3 from 3.23.10 to 3.23.11 (#4233)
- 8f4b1a79 build(deps): bump github.com/shirou/gopsutil/v3 from 3.23.11 to 3.23.12 (#4296)
- ee98b504 build(deps): bump github.com/shirou/gopsutil/v3 from 3.23.12 to 3.24.1 (#4344)
- 0d5efec2 build(deps): bump github.com/sigstore/cosign from 1.13.1 to 1.13.2 in /tools (#4251)
- 4c6c8711 build(deps): bump github.com/tetafro/godot from 1.4.15 to 1.4.16 (#4192)
- 57bc603e build(deps): bump github.com/ykadowak/zerologlint from 0.1.3 to 0.1.4 (#4222)
- 5cb49739 build(deps): bump github.com/ykadowak/zerologlint from 0.1.4 to 0.1.5 (#4235)
- cd0d3447 build(deps): bump github/codeql-action from 2 to 3 (#4266)
- 89bfdc05 build(deps): bump go-simpler.org/musttag from v0.7.2 to v0.8.0 (#4201)
- f17fef34 build(deps): bump go-simpler.org/sloglint from 0.1.2 to 0.2.0 (#4166)
- b702218b build(deps): bump go-simpler.org/sloglint from 0.2.0 to 0.3.0 (#4183)
- 27e99b5d build(deps): bump go-simpler.org/sloglint from 0.3.0 to 0.4.0 (#4257)
- 20600668 build(deps): bump golang.org/x/crypto from 0.14.0 to 0.17.0 in /tools (#4269)
- 0baed20d build(deps): bump golang.org/x/oauth2 from 0.13.0 to 0.14.0 in /scripts/gen_github_action_config (#4203)
- 855d4433 build(deps): bump golang.org/x/oauth2 from 0.14.0 to 0.15.0 in /scripts/gen_github_action_config (#4223)
- 75d57088 build(deps): bump golang.org/x/oauth2 from 0.15.0 to 0.16.0 in /scripts/gen_github_action_config (#4308)
- cf2591a9 build(deps): bump golang.org/x/tools from 0.14.0 to 0.15.0 (#4191)
- de98cc08 build(deps): bump golang.org/x/tools from 0.15.0 to 0.16.0 (#4232)
- 6b535aef build(deps): bump golang.org/x/tools from 0.16.0 to 0.16.1 (#4259)
- 4bf463a8 build(deps): bump golang.org/x/tools from 0.16.1 to 0.17.0 (#4315)
- 11bf3d67 build(deps): bump mvdan.cc/gofumpt from 0.5.0 to 0.6.0 (#4338)
- 71ffbf20 build(deps): bump mvdan.cc/unparam from 20221223090309-7455f1af531d to 20240104100049-c549a3470d14 (#4333)
- a7c175b6 build(deps): bump peter-evans/create-pull-request from 5 to 6 (#4348)
- 32e5b2bf build(deps): github.com/macabu/inamedparam from 0.1.2 to 0.1.3 (#4261)
- 43849699 chore: build doc on PR
- 7fc341e5 devs: fix typo in testdata for gochecknoglobals (#4320)
- d23c3547 feat: add
spancheck
linter (#4290) - b3ffe708 feat: implement stats per linter with a flag (#4341)
- 95bc7a85 fix: make versioning inside Docker image consistent with binaries (#4279)
- ad4a6b2c fix: parse Go RC version (#4319)
- 192ee892 go1.22 support (#4272)
- d99c02cd misspell: add mode option (#4275)
- f269abec sloglint: add static-msg option (#4213)
- 78742aca whitespace: update after moving to the
analysis
package (#4003)
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
1、 golangci-lint-1.56.0-checksums.txt 5.13KB
2、 golangci-lint-1.56.0-darwin-amd64.tar.gz 10.24MB
3、 golangci-lint-1.56.0-darwin-arm64.tar.gz 9.72MB
4、 golangci-lint-1.56.0-freebsd-386.tar.gz 9.26MB
5、 golangci-lint-1.56.0-freebsd-amd64.tar.gz 9.97MB
6、 golangci-lint-1.56.0-freebsd-armv6.tar.gz 9.34MB
7、 golangci-lint-1.56.0-freebsd-armv7.tar.gz 9.33MB
8、 golangci-lint-1.56.0-illumos-amd64.tar.gz 9.97MB
9、 golangci-lint-1.56.0-linux-386.deb 9.3MB
10、 golangci-lint-1.56.0-linux-386.rpm 9.58MB
11、 golangci-lint-1.56.0-linux-386.tar.gz 9.27MB
12、 golangci-lint-1.56.0-linux-amd64.deb 10.01MB
13、 golangci-lint-1.56.0-linux-amd64.rpm 10.33MB
14、 golangci-lint-1.56.0-linux-amd64.tar.gz 9.98MB
15、 golangci-lint-1.56.0-linux-arm64.deb 9.28MB
16、 golangci-lint-1.56.0-linux-arm64.rpm 9.5MB
17、 golangci-lint-1.56.0-linux-arm64.tar.gz 9.26MB
18、 golangci-lint-1.56.0-linux-armv6.deb 9.36MB
19、 golangci-lint-1.56.0-linux-armv6.rpm 9.6MB
20、 golangci-lint-1.56.0-linux-armv6.tar.gz 9.34MB
21、 golangci-lint-1.56.0-linux-armv7.deb 9.35MB
22、 golangci-lint-1.56.0-linux-armv7.rpm 9.59MB
23、 golangci-lint-1.56.0-linux-armv7.tar.gz 9.33MB
24、 golangci-lint-1.56.0-linux-loong64.deb 9.41MB
25、 golangci-lint-1.56.0-linux-loong64.rpm 9.62MB
26、 golangci-lint-1.56.0-linux-loong64.tar.gz 9.38MB
27、 golangci-lint-1.56.0-linux-mips64.deb 8.76MB
28、 golangci-lint-1.56.0-linux-mips64.rpm 9.12MB
29、 golangci-lint-1.56.0-linux-mips64.tar.gz 8.67MB
30、 golangci-lint-1.56.0-linux-mips64le.deb 8.62MB
31、 golangci-lint-1.56.0-linux-mips64le.rpm 8.93MB
32、 golangci-lint-1.56.0-linux-mips64le.tar.gz 8.58MB
33、 golangci-lint-1.56.0-linux-ppc64le.deb 9.2MB
34、 golangci-lint-1.56.0-linux-ppc64le.rpm 9.43MB
35、 golangci-lint-1.56.0-linux-ppc64le.tar.gz 9.17MB
36、 golangci-lint-1.56.0-linux-riscv64.deb 9.4MB
37、 golangci-lint-1.56.0-linux-riscv64.rpm 9.68MB
38、 golangci-lint-1.56.0-linux-riscv64.tar.gz 9.38MB
39、 golangci-lint-1.56.0-linux-s390x.deb 9.7MB
40、 golangci-lint-1.56.0-linux-s390x.rpm 10.12MB
41、 golangci-lint-1.56.0-linux-s390x.tar.gz 9.65MB
42、 golangci-lint-1.56.0-netbsd-386.tar.gz 9.25MB
43、 golangci-lint-1.56.0-netbsd-amd64.tar.gz 9.97MB
44、 golangci-lint-1.56.0-netbsd-armv6.tar.gz 9.33MB
45、 golangci-lint-1.56.0-netbsd-armv7.tar.gz 9.32MB
46、 golangci-lint-1.56.0-source.tar.gz 1.61MB
47、 golangci-lint-1.56.0-windows-386.zip 9.67MB
48、 golangci-lint-1.56.0-windows-amd64.zip 10.21MB
49、 golangci-lint-1.56.0-windows-arm64.zip 9.35MB
50、 golangci-lint-1.56.0-windows-armv6.zip 9.53MB
51、 golangci-lint-1.56.0-windows-armv7.zip 9.51MB