chore(deps): update module mvdan.cc/gofumpt to v0.12.0 #27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/mvdan.cc-gofumpt-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
v0.9.2→v0.12.0Release Notes
mvdan/gofumpt (mvdan.cc/gofumpt)
v0.12.0Compare Source
This release is based on Go 1.27's gofmt, and requires Go 1.26 or later.
A standard library import carrying a doc or inline comment is no longer moved
into the top import group, as the comment stayed behind and ended up detached
at the bottom of the group. See #289.
Moving a standard library import up no longer leaves an empty line where it
used to be, which split the remaining imports into extra groups. See #225.
A copyright header or package doc no longer makes gofumpt treat a single-line
first declaration as multi-line, adding an empty line after it.
An assignment whose right-hand side is separated by a comment is now left
alone, as merging the lines produced output which gofmt would change back.
v0.11.0Compare Source
Like v0.10.0, this release is based on Go 1.26's gofmt, and requires Go 1.25 or later.
The multi-line function call rule introduced in v0.10.0 proved controversial,
so it is now the extra rule
balance_calls, disabled by default.It is also narrowed to only place the closing parenthesis on its own line
when the opening parenthesis ends a line. See #74.
Avoid crashing when compiled with tinygo for Wasm, which lacks recover support,
by detecting commented-out code without the parser's bailout panic. See #230.
Produce stable output in a single pass when a lone var declaration is adjacent
to a single-element var group, which previously required a second run. See #355.
Keep the parentheses around an expression which begins with a composite literal
of the form
T{...}, such as(s{}.Foo()), as they are required when theexpression starts an
if,for, orswitchclause. See #356.v0.10.0Compare 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
-extraflag now accepts a comma-separated list of rule names to enableindividual extra rules, rather than enabling all of them at once. See #339.
The following changes are included as well:
go.modfiles without amoduledirective - #350Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 has been generated by Renovate Bot.
ℹ️ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the
go getcommand, which resulted in the following additional change(s):godirective was updated for compatibility reasonsDetails:
go1.25.5->1.26.0golang.org/x/modv0.29.0->v0.40.0golang.org/x/syncv0.17.0->v0.22.0golang.org/x/toolsv0.38.0->v0.49.0714a15324cb3d78cdbf0chore(deps): update module mvdan.cc/gofumpt to v0.10.0to chore(deps): update module mvdan.cc/gofumpt to v0.11.0b3d78cdbf0b9373932cachore(deps): update module mvdan.cc/gofumpt to v0.11.0to chore(deps): update module mvdan.cc/gofumpt to v0.12.0View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.