Update module mvdan.cc/gofumpt to v0.10.0 #198

Merged
viceice merged 2 commits from renovate/mvdan.cc-gofumpt-0.x into main 2026-05-08 07:03:47 +00:00
Member

This PR contains the following updates:

Package Change Age Confidence
mvdan.cc/gofumpt v0.9.2v0.10.0 age confidence

Release Notes

mvdan/gofumpt (mvdan.cc/gofumpt)

v0.10.0

Compare Source

This release is based on Go 1.26's gofmt, and requires Go 1.25 or later.

A new rule is introduced to drop unnecessary parentheses around expressions
where the inner expression is unambiguous on its own, such as f((3)).
Parentheses are kept where they are useful, such as on binary expressions. See #​44.

A new rule is introduced to require multi-line function calls to match
the opening and closing parenthesis in terms of the use of newlines. See #​74.

The -extra flag now accepts a comma-separated list of rule names to enable
individual extra rules, rather than enabling all of them at once. See #​339.

The following changes are included as well:

  • Avoid crashing on go.mod files without a module directive - #​350
  • Avoid failing when an ignored directory cannot be read - #​351
  • Avoid prefixing more kinds of commented-out Go code with spaces - #​230
  • Avoid prefixing a shebang comment with a space - #​237
  • Narrow the newlines on assignments rule to ignore complex cases - #​354
  • Fix three bugs which caused a second gofumpt run to make changes - #​132, #​345

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM (* 0-3 * * *)
  • Automerge
    • Between 12:00 AM and 03:59 AM (* 0-3 * * *)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [mvdan.cc/gofumpt](https://github.com/mvdan/gofumpt) | `v0.9.2` → `v0.10.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/mvdan.cc%2fgofumpt/v0.10.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/mvdan.cc%2fgofumpt/v0.9.2/v0.10.0?slim=true) | --- ### Release Notes <details> <summary>mvdan/gofumpt (mvdan.cc/gofumpt)</summary> ### [`v0.10.0`](https://github.com/mvdan/gofumpt/blob/HEAD/CHANGELOG.md#v0100---2026-05-04) [Compare Source](https://github.com/mvdan/gofumpt/compare/v0.9.2...v0.10.0) This release is based on Go 1.26's gofmt, and requires Go 1.25 or later. A new rule is introduced to drop unnecessary parentheses around expressions where the inner expression is unambiguous on its own, such as `f((3))`. Parentheses are kept where they are useful, such as on binary expressions. See [#&#8203;44](https://github.com/mvdan/gofumpt/issues/44). A new rule is introduced to require multi-line function calls to match the opening and closing parenthesis in terms of the use of newlines. See [#&#8203;74](https://github.com/mvdan/gofumpt/issues/74). The `-extra` flag now accepts a comma-separated list of rule names to enable individual extra rules, rather than enabling all of them at once. See [#&#8203;339](https://github.com/mvdan/gofumpt/issues/339). The following changes are included as well: - Avoid crashing on `go.mod` files without a `module` directive - [#&#8203;350](https://github.com/mvdan/gofumpt/issues/350) - Avoid failing when an ignored directory cannot be read - [#&#8203;351](https://github.com/mvdan/gofumpt/issues/351) - Avoid prefixing more kinds of commented-out Go code with spaces - [#&#8203;230](https://github.com/mvdan/gofumpt/issues/230) - Avoid prefixing a shebang comment with a space - [#&#8203;237](https://github.com/mvdan/gofumpt/issues/237) - Narrow the newlines on assignments rule to ignore complex cases - [#&#8203;354](https://github.com/mvdan/gofumpt/issues/354) - Fix three bugs which caused a second gofumpt run to make changes - [#&#8203;132](https://github.com/mvdan/gofumpt/issues/132), [#&#8203;345](https://github.com/mvdan/gofumpt/issues/345) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - Between 12:00 AM and 03:59 AM (`* 0-3 * * *`) - Automerge - Between 12:00 AM and 03:59 AM (`* 0-3 * * *`) 🚦 **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNjAuNiIsInVwZGF0ZWRJblZlciI6IjQzLjE2MC42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
viceice-bot force-pushed renovate/mvdan.cc-gofumpt-0.x from 46a9e1c6c0
Some checks failed
/ test (pull_request) Failing after 23s
to e9f907b2fc
Some checks failed
/ test (pull_request) Failing after 30s
2026-05-08 06:54:16 +00:00
Compare
chore: fix format
All checks were successful
/ test (pull_request) Successful in 6m18s
58aa4fca3c
viceice scheduled this pull request to auto merge when all checks succeed 2026-05-08 06:58:02 +00:00
viceice approved these changes 2026-05-08 06:58:07 +00:00
Author
Member

Edited/Blocked Notification

Renovate 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.

⚠️ Warning: custom changes will be lost.

### Edited/Blocked Notification Renovate 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. ⚠️ **Warning**: custom changes will be lost.
viceice deleted branch renovate/mvdan.cc-gofumpt-0.x 2026-05-08 07:03:47 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
forgejo/release-notes-assistant!198
No description provided.