You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
chore(deps): update module mvdan.cc/gofumpt to v0.10.0 (#8304)
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://redirect.github.com/mvdan/gofumpt) | `v0.9.2` → `v0.10.0` |  |  | --- ### Release Notes <details> <summary>mvdan/gofumpt (mvdan.cc/gofumpt)</summary> ### [`v0.10.0`](https://redirect.github.com/mvdan/gofumpt/blob/HEAD/CHANGELOG.md#v0100---2026-05-04) [Compare Source](https://redirect.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 [#​44](https://redirect.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 [#​74](https://redirect.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 [#​339](https://redirect.github.com/mvdan/gofumpt/issues/339). The following changes are included as well: - Avoid crashing on `go.mod` files without a `module` directive - [#​350](https://redirect.github.com/mvdan/gofumpt/issues/350) - Avoid failing when an ignored directory cannot be read - [#​351](https://redirect.github.com/mvdan/gofumpt/issues/351) - Avoid prefixing more kinds of commented-out Go code with spaces - [#​230](https://redirect.github.com/mvdan/gofumpt/issues/230) - Avoid prefixing a shebang comment with a space - [#​237](https://redirect.github.com/mvdan/gofumpt/issues/237) - Narrow the newlines on assignments rule to ignore complex cases - [#​354](https://redirect.github.com/mvdan/gofumpt/issues/354) - Fix three bugs which caused a second gofumpt run to make changes - [#​132](https://redirect.github.com/mvdan/gofumpt/issues/132), [#​345](https://redirect.github.com/mvdan/gofumpt/issues/345) </details> --- ### Configuration 📅 **Schedule**: (UTC) - 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/open-telemetry/opentelemetry-go). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTkuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE1OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJTa2lwIENoYW5nZWxvZyIsImRlcGVuZGVuY2llcyJdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tyler Yahn <codingalias@gmail.com>
This commit is contained in:
@@ -961,7 +961,6 @@ func (DiskIOTime) Description() string {
|
||||
// ["Disk% Idle Time"]
|
||||
// performance counter: `uptime * (100 - "Disk\% Idle Time") / 100`
|
||||
//
|
||||
//
|
||||
// [procfs-diskstats]: https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats
|
||||
// ["Disk% Idle Time"]: https://learn.microsoft.com/archive/blogs/askcore/windows-performance-monitor-disk-counters-explained#windows-performance-monitor-disk-counters-explained
|
||||
func (m DiskIOTime) Add(
|
||||
@@ -1003,7 +1002,6 @@ func (m DiskIOTime) Add(
|
||||
// ["Disk% Idle Time"]
|
||||
// performance counter: `uptime * (100 - "Disk\% Idle Time") / 100`
|
||||
//
|
||||
//
|
||||
// [procfs-diskstats]: https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats
|
||||
// ["Disk% Idle Time"]: https://learn.microsoft.com/archive/blogs/askcore/windows-performance-monitor-disk-counters-explained#windows-performance-monitor-disk-counters-explained
|
||||
func (m DiskIOTime) AddSet(ctx context.Context, incr float64, set attribute.Set) {
|
||||
@@ -1338,7 +1336,6 @@ func (DiskOperationTime) Description() string {
|
||||
// - Windows: "Avg. Disk sec/Read" perf counter multiplied by "Disk Reads/sec"
|
||||
// perf counter (similar for Writes)
|
||||
//
|
||||
//
|
||||
// [procfs-diskstats]: https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats
|
||||
func (m DiskOperationTime) Add(
|
||||
ctx context.Context,
|
||||
@@ -1378,7 +1375,6 @@ func (m DiskOperationTime) Add(
|
||||
// - Windows: "Avg. Disk sec/Read" perf counter multiplied by "Disk Reads/sec"
|
||||
// perf counter (similar for Writes)
|
||||
//
|
||||
//
|
||||
// [procfs-diskstats]: https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats
|
||||
func (m DiskOperationTime) AddSet(ctx context.Context, incr float64, set attribute.Set) {
|
||||
if !m.Float64Counter.Enabled(ctx) {
|
||||
@@ -2764,7 +2760,6 @@ func (NetworkErrors) Description() string {
|
||||
// - Windows: [`InErrors`/`OutErrors`]
|
||||
// from [`GetIfEntry2`].
|
||||
//
|
||||
//
|
||||
// [source]: https://web.archive.org/web/20180321091318/http://www.onlamp.com/pub/a/linux/2000/11/16/LinuxAdmin.html
|
||||
// [`InErrors`/`OutErrors`]: https://docs.microsoft.com/windows/win32/api/netioapi/ns-netioapi-mib_if_row2
|
||||
// [`GetIfEntry2`]: https://docs.microsoft.com/windows/win32/api/netioapi/nf-netioapi-getifentry2
|
||||
@@ -2805,7 +2800,6 @@ func (m NetworkErrors) Add(
|
||||
// - Windows: [`InErrors`/`OutErrors`]
|
||||
// from [`GetIfEntry2`].
|
||||
//
|
||||
//
|
||||
// [source]: https://web.archive.org/web/20180321091318/http://www.onlamp.com/pub/a/linux/2000/11/16/LinuxAdmin.html
|
||||
// [`InErrors`/`OutErrors`]: https://docs.microsoft.com/windows/win32/api/netioapi/ns-netioapi-mib_if_row2
|
||||
// [`GetIfEntry2`]: https://docs.microsoft.com/windows/win32/api/netioapi/nf-netioapi-getifentry2
|
||||
@@ -3105,7 +3099,6 @@ func (NetworkPacketDropped) Description() string {
|
||||
// - Windows: [`InDiscards`/`OutDiscards`]
|
||||
// from [`GetIfEntry2`]
|
||||
//
|
||||
//
|
||||
// [source]: https://web.archive.org/web/20180321091318/http://www.onlamp.com/pub/a/linux/2000/11/16/LinuxAdmin.html
|
||||
// [`InDiscards`/`OutDiscards`]: https://docs.microsoft.com/windows/win32/api/netioapi/ns-netioapi-mib_if_row2
|
||||
// [`GetIfEntry2`]: https://docs.microsoft.com/windows/win32/api/netioapi/nf-netioapi-getifentry2
|
||||
@@ -3146,7 +3139,6 @@ func (m NetworkPacketDropped) Add(
|
||||
// - Windows: [`InDiscards`/`OutDiscards`]
|
||||
// from [`GetIfEntry2`]
|
||||
//
|
||||
//
|
||||
// [source]: https://web.archive.org/web/20180321091318/http://www.onlamp.com/pub/a/linux/2000/11/16/LinuxAdmin.html
|
||||
// [`InDiscards`/`OutDiscards`]: https://docs.microsoft.com/windows/win32/api/netioapi/ns-netioapi-mib_if_row2
|
||||
// [`GetIfEntry2`]: https://docs.microsoft.com/windows/win32/api/netioapi/nf-netioapi-getifentry2
|
||||
|
||||
Reference in New Issue
Block a user