chore(deps): update dependency golangci/golangci-lint to v2
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| golangci/golangci-lint | major | 1.64.4 -> 2.0.1 |
Release Notes
golangci/golangci-lint (golangci/golangci-lint)
v2.0.1
- Linters/formatters bug fixes
-
golines: fix settings during linter load
-
- Misc.
- Validates the
versionfield before the configuration -
forbidigo: fix migration
- Validates the
v2.0.0
- Enhancements
- ๐ New
golangci-lint fmtcommand with dedicated formatter configuration (https://golangci-lint.run/welcome/quick-start/#formatting) - โป๏ธ New
golangci-lint migratecommand to help migration from v1 to v2 (cf. Migration guide) - โ ๏ธ New default values (cf. Migration guide)
- โ ๏ธ No exclusions by default (cf. Migration guide)
- โ ๏ธ New default sort order (cf. Migration guide)
- ๐ New option
run.relative-path-mode(cf. Migration guide) - ๐ New linters configuration (cf. Migration guide)
- ๐ New output format configuration (cf. Migration guide)
- ๐ New
--fast-onlyflag (cf. Migration guide) - ๐ New option
linters.exclusions.warn-unusedto log a warning if an exclusion rule is unused.
- ๐ New
- New linters/formatters
- Add
golinesformatter https://github.com/segmentio/golines
- Add
- Linters new features
- โ ๏ธ Merge
staticcheck,stylecheck,gosimpleinto one linter (staticcheck) (cf. Migration guide) -
go-critic: from 0.12.0 to 0.13.0 -
gomodguard: from 1.3.5 to 1.4.1 (block explicit indirect dependencies) -
nilnil: from 1.0.1 to 1.1.0 (new option:only-two) -
perfsprint: from 0.8.2 to 0.9.1 (checker name in the diagnostic message) -
staticcheck: newquickfixset of rules -
testifylint: from 1.5.2 to 1.6.0 (new options:equal-values,suite-method-signature,require-string-msg) -
wsl: from 4.5.0 to 4.6.0 (new option:allow-cuddle-used-in-block)
- โ ๏ธ Merge
- Linters bug fixes
-
bidichk: from 0.3.2 to 0.3.3 -
errchkjson: from 0.4.0 to 0.4.1 -
errname: from 1.0.0 to 1.1.0 -
funlen: fixignore-commentsoption -
gci: from 0.13.5 to 0.13.6 -
gosmopolitan: from 1.2.2 to 1.3.0 -
inamedparam: from 0.1.3 to 0.2.0 -
intrange: from 0.3.0 to 0.3.1 -
protogetter: from 0.3.9 to 0.3.12 -
unparam: from8a5130cto0df0534
-
- Misc.
- ๐งน Configuration options renaming (cf. Migration guide)
- ๐งน Remove options (cf. Migration guide)
- ๐งน Remove flags (cf. Migration guide)
- ๐งน Remove alternative names (cf. Migration guide)
- ๐งน Remove or replace deprecated elements (cf. Migration guide)
- Adds an option to display some commands as JSON:
-
golangci-lint config path --json -
golangci-lint help linters --json -
golangci-lint help formatters --json -
golangci-lint linters --json -
golangci-lint formatters --json -
golangci-lint version --json
-
- Documentation
v1.64.8
- Detects use of configuration files from golangci-lint v2
v1.64.7
- Linters bug fixes
- Documentation
- Add GitLab documentation
v1.64.6
- Linters bug fixes
-
asciicheck: from 0.4.0 to 0.4.1 -
contextcheck: from 1.1.5 to 1.1.6 -
errcheck: from 1.8.0 to 1.9.0 -
exptostd: from 0.4.1 to 0.4.2 -
ginkgolinter: from 0.19.0 to 0.19.1 -
go-exhaustruct: from 3.3.0 to 3.3.1 -
gocheckcompilerdirectives: from 1.2.1 to 1.3.0 -
godot: from 1.4.20 to 1.5.0 -
perfsprint: from 0.8.1 to 0.8.2 -
revive: from 1.6.1 to 1.7.0 -
tagalign: from 1.4.1 to 1.4.2
-
v1.64.5
- Bug fixes
- Add missing flag
new-from-merge-base-flag
- Add missing flag
- Linters bug fixes
-
asciicheck: from 0.3.0 to 0.4.0 -
forcetypeassert: from 0.1.0 to 0.2.0 -
gosec: from 2.22.0 to 2.22.1
-
Configuration
๐ Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
๐ฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.
โป Rebasing: Never, or you tick the rebase/retry checkbox.
๐ Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: renovate[bot] Once this PR has been reviewed and has the lgtm label, please assign rhatdan for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
v2 was released only yesterday and seems to have breaking changes.
This won't work as is, needs a new config and some fixes. I will open a PR soon.
This PR needs to be closed.