-
-
Notifications
You must be signed in to change notification settings - Fork 257
chore(deps): update dependency golangci/golangci-lint to v2 #5059
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦙 MegaLinter status:
|
Descriptor | Linter | Files | Fixed | Errors | Warnings | Elapsed time |
---|---|---|---|---|---|---|
✅ API | spectral | 1 | 0 | 0 | 1.69s | |
bash-exec | 6 | 1 | 0 | 0.02s | ||
✅ BASH | shellcheck | 6 | 0 | 0 | 0.18s | |
✅ BASH | shfmt | 6 | 0 | 0 | 0 | 0.32s |
✅ COPYPASTE | jscpd | yes | no | no | 3.07s | |
✅ DOCKERFILE | hadolint | 131 | 0 | 0 | 29.19s | |
✅ JSON | jsonlint | 20 | 0 | 0 | 0.21s | |
✅ JSON | v8r | 22 | 0 | 0 | 16.38s | |
markdownlint | 269 | 0 | 304 | 0 | 21.77s | |
✅ MARKDOWN | markdown-table-formatter | 269 | 0 | 0 | 0 | 141.37s |
bandit | 219 | 67 | 0 | 5.69s | ||
✅ PYTHON | black | 219 | 0 | 0 | 0 | 4.11s |
✅ PYTHON | flake8 | 219 | 0 | 0 | 1.99s | |
✅ PYTHON | isort | 219 | 0 | 0 | 0 | 0.76s |
✅ PYTHON | mypy | 219 | 0 | 0 | 12.06s | |
✅ PYTHON | pylint | 219 | 0 | 0 | 21.01s | |
✅ PYTHON | ruff | 219 | 0 | 0 | 0 | 0.35s |
✅ REPOSITORY | checkov | yes | no | no | 36.44s | |
✅ REPOSITORY | git_diff | yes | no | no | 0.19s | |
grype | yes | 27 | no | 32.2s | ||
✅ REPOSITORY | secretlint | yes | no | no | 9.07s | |
✅ REPOSITORY | syft | yes | no | no | 2.49s | |
✅ REPOSITORY | trivy | yes | no | no | 11.17s | |
✅ REPOSITORY | trivy-sbom | yes | no | no | 20.8s | |
✅ REPOSITORY | trufflehog | yes | no | no | 4.21s | |
✅ SPELL | cspell | 727 | 0 | 0 | 14.9s | |
lychee | 351 | 33 | 0 | 39.86s | ||
✅ XML | xmllint | 3 | 0 | 0 | 0 | 0.81s |
✅ YAML | prettier | 160 | 0 | 0 | 0 | 3.32s |
✅ YAML | v8r | 103 | 0 | 0 | 25.63s | |
✅ YAML | yamllint | 161 | 0 | 0 | 3.69s |
See detailed report in MegaLinter reports
27988ce
to
e7e3a17
Compare
e7e3a17
to
b95834e
Compare
b95834e
to
7192c89
Compare
7192c89
to
4a57f99
Compare
79e2fa5
to
cad91d6
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
/build
|
Approve this also @echoix when you can, thanks |
Where did you inspire yourself for the new config file? I didn't see anything in #5051 from the contributor. |
I ran |
Great! |
This PR contains the following updates:
1.64.8
->2.1.5
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
golangci/golangci-lint (golangci/golangci-lint)
v2.1.5
Compare Source
Due to an error related to Snapcraft, some artifacts of the v2.1.4 release have not been published.
This release contains the same things as v2.1.3.
v2.1.4
Compare Source
Due to an error related to Snapcraft, some artifacts of the v2.1.3 release have not been published.
This release contains the same things as v2.1.3.
v2.1.3
Compare Source
v2.1.2
Compare Source
exptostd
: from 0.4.2 to 0.4.3gofumpt
: from 0.7.0 to 0.8.0protogetter
: from 0.3.13 to 0.3.15usetesting
: from 0.4.2 to 0.4.3v2.1.1
Compare Source
The release process of v2.1.0 failed due to a regression inside goreleaser.
The binaries of v2.1.0 have been published, but not the other artifacts (AUR, Docker, etc.).
v2.1.0
Compare Source
--path-mode=abs
)${config-path}
)warn-unused
option forfmt
commandfmt
command (golangci-lint fmt --diff-colored
)funcorder
linter https://github.com/manuelarte/funcordergo-errorlint
: from 1.7.1 to 1.8.0 (automatic error comparison and type assertion fixes)goconst
:ignore-strings
is deprecated and replaced byignore-string-values
goconst
: from 1.7.1 to 1.8.1 (new options:find-duplicates
,eval-const-expressions
)govet
: addhttpmux
analyzernilnesserr
: from 0.1.2 to 0.2.0 (detect more cases)paralleltest
: from 1.0.10 to 1.0.14 (checks only_test.go
files)revive
: from 1.7.0 to 1.9.0 (support kebab case for setting names)sloglint
: from 0.9.0 to 0.11.0 (autofix, new optionmsg-style
, suggestslog.DiscardHandler
)wrapcheck
: from 2.10.0 to 2.11.0 (new optionreport-internal-errors
)wsl
: from 4.6.0 to 4.7.0 (cgo files are always excluded)fatcontext
: from 0.7.1 to 0.7.2gocritic
: fiximportshadow
checkergosec
: from 2.22.2 to 2.22.3ireturn
: from 0.3.1 to 0.4.0loggercheck
: from 0.10.1 to 0.11.0nakedret
: from 2.0.5 to 2.0.6nonamedreturns
: from 1.0.5 to 1.0.6protogetter
: from 0.3.12 to 0.3.13testifylint
: from 1.6.0 to 1.6.1unconvert
: update to HEADgolangci-lint-fmt
pre-commit hookv2.0.2
Compare Source
source
optionv2.0.1
Compare Source
golines
: fix settings during linter loadversion
field before the configurationforbidigo
: fix migrationv2.0.0
Compare Source
golangci-lint fmt
command with dedicated formatter configurationgolangci-lint migrate
command to help migration from v1 to v2 (cf. Migration guide)run.relative-path-mode
(cf. Migration guide)--fast-only
flag (cf. Migration guide)linters.exclusions.warn-unused
to log a warning if an exclusion rule is unused.golines
formatter https://github.com/segmentio/golinesstaticcheck
,stylecheck
,gosimple
into one linter (staticcheck
) (cf. Migration guide)go-critic
: from 0.12.0 to 0.13.0gomodguard
: 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
: newquickfix
set of rulestestifylint
: 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
)bidichk
: from 0.3.2 to 0.3.3errchkjson
: from 0.4.0 to 0.4.1errname
: from 1.0.0 to 1.1.0funlen
: fixignore-comments
optiongci
: from 0.13.5 to 0.13.6gosmopolitan
: from 1.2.2 to 1.3.0inamedparam
: from 0.1.3 to 0.2.0intrange
: from 0.3.0 to 0.3.1protogetter
: from 0.3.9 to 0.3.12unparam
: from8a5130c
to0df0534
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
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: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.