github golangci/golangci-lint v1.57.0

latest releases: v1.62.0, v1.61.0, v1.60.3...
7 months ago

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

⚠️ Important ⚠️

  1. Deprecated linters are inactivated, you still need to disable them if you are using enable-all.
  2. 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 by issues.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)

Don't miss a new golangci-lint release

NewReleases is sending notifications on new releases.