chore(deps): update dependency golangci/golangci-lint to v2.5.0#352
chore(deps): update dependency golangci/golangci-lint to v2.5.0#352
Conversation
2835c9f to
375f302
Compare
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
375f302 to
0dd8e77
Compare
|
@mtrmac PTAL |
|
✅ A new PR has been created in buildah to vendor these changes: containers/buildah#6401 |
1b799b1 to
39327d6
Compare
|
✅ A new PR has been created in buildah to vendor these changes: containers/buildah#6402 |
Just some minor formatting changes from gofumpt. Signed-off-by: Paul Holzinger <[email protected]>
39327d6 to
b8a599f
Compare
|
I wonder if we need an opt out of this create downstream PR workflow? A chnage like this really does not benefit from it and I though when I closed the buildah PR it would just be fine but it seem repushes just create a new PR then? cc @flouthoc |
We can not enable this workflow on PR with |
I don't want to gate on the dependency label, we already have the path conditions setup so it trigger on the renovate commit. What happened I fixed a bunch of basic lint errors that I know won't affect podman/buildah in any way so it would be nice to have a way to skip it (via label should be fine) that I can apply before I push that change mainly to avoid the CI time and churn on the other repos. |
mtrmac
left a comment
There was a problem hiding this comment.
Thanks @Luap99 !
I think, if we are going to have these linters, let’s take advantage of them by expressing (in this case) the error handling code paths as explicitly as possible.
(I’m generally not a fan of zealously enabling non-default linters, so I would not be too opposed to disabling that linter instead… but, also, I’ve been severely bitten by named return values previously.)
|
I have ~no opinion on dependency-only updates. For a situation like this, where we do change some of our code, I lean towards thinking that machine time is cheap, and it is possible for bugs to sneak in via one tiny oversight among a few dozen small changes of this kind. I’m not saying that we absolutely must not have an “opt-out” label — rather, that we should not get into the habit of thinking “let’s save a few pennies by not testing this PR, I think it’s good”. |
I hate named returns so I very much like this change, also since it isn't clear this is not a new linter but the gofumpt formatter seems to change this now by default and thus the linter checking the formatting is complaining. Certainly we could disable gofumpt linter but overall this seems a good thing.
fair enough |
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. |
|
Ok I did "simplify" a bit futher by removing a bunch of named return params where they don't really add anything IMO. |
mtrmac
left a comment
There was a problem hiding this comment.
Thanks! LGTM after one more change, please merge directly afterwards.
afd031e to
da86a60
Compare
With the linter enforcing the proper return statements we don't need to define the named return parameter in many cases. Signed-off-by: Paul Holzinger <[email protected]>
da86a60 to
f787ee6
Compare
|
Packit jobs failed. @containers/packit-build please check. |
Note
Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to
mend[bot].This notice will be removed on 2025-10-07.
This PR contains the following updates:
v2.4.0->v2.5.0Release Notes
golangci/golangci-lint (golangci/golangci-lint)
v2.5.0Compare Source
godoclintlinter https://github.com/godoc-lint/godoc-lintunqueryvetlinter https://github.com/MirrexOne/unqueryvetiotamixinglinter https://github.com/AdminBenni/iota-mixingembeddedstructfieldcheck: from 0.3.0 to 0.4.0 (new option:empty-line)err113: fromaea10b5to 0.1.1 (skip internals ofIsmethods forerrortype)ginkgolinter: from 0.20.0 to 0.21.0 (new option:force-tonot)gofumpt: from 0.8.0 to 0.9.1 (new rule is to "clothe" naked returns for the sake of clarity)ineffassign: from 0.1.0 to 0.2.0 (new option:check-escaping-errors)musttag: from 0.13.1 to 0.14.0 (support interface methods)revive: from 1.11.0 to 1.12.0 (new options:identical-ifelseif-branches,identical-ifelseif-conditions,identical-switch-branches,identical-switch-conditions,package-directory-mismatch,unsecure-url-scheme,use-waitgroup-go,useless-fallthrough)thelper: from 0.6.3 to 0.7.1 (skipt.Helperin functions passed tosynctest.Test)wsl: from 5.1.1 to 5.2.0 (improvements related to subexpressions)asciicheck: from 0.4.1 to 0.5.0errname: from 1.1.0 to 1.1.1fatcontext: from 0.8.0 to 0.8.1go-printf-func-name: from 0.1.0 to 0.1.1godot: from 1.5.1 to 1.5.4gosec: from 2.22.7 to 2.22.8nilerr: from 0.1.1 to a temporary forknilnil: from 1.1.0 to 1.1.1protogetter: from 0.3.15 to 0.3.16tagliatelle: from 0.7.1 to 0.7.2testifylint: from 1.6.1 to 1.6.4Configuration
📅 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 is behind base branch, 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.