Skip to content

Commit 9dea78c

Browse files
chore(deps): update module github.com/go-critic/go-critic to v0.14.0 (#7509)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [github.com/go-critic/go-critic](https://redirect.github.com/go-critic/go-critic) | `v0.13.0` -> `v0.14.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgo-critic%2fgo-critic/v0.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgo-critic%2fgo-critic/v0.13.0/v0.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>go-critic/go-critic (github.com/go-critic/go-critic)</summary> ### [`v0.14.0`](https://redirect.github.com/go-critic/go-critic/releases/tag/v0.14.0) [Compare Source](https://redirect.github.com/go-critic/go-critic/compare/v0.13.0...v0.14.0) #### What's Changed - checkers/exitAfterDefer: handle optional `defer` properly by [@&#8203;Afterous](https://redirect.github.com/Afterous) in [#&#8203;1437](https://redirect.github.com/go-critic/go-critic/pull/1437) - checkers/deprecatedComment: check that deprecated convention appears in a separate paragraph by [@&#8203;mx-psi](https://redirect.github.com/mx-psi) in [#&#8203;1470](https://redirect.github.com/go-critic/go-critic/pull/1470) - dev: enable goprintffuncname linter by [@&#8203;alexandear](https://redirect.github.com/alexandear) in [#&#8203;1478](https://redirect.github.com/go-critic/go-critic/pull/1478) - checkers: add dupOption by [@&#8203;alingse](https://redirect.github.com/alingse) in [#&#8203;1471](https://redirect.github.com/go-critic/go-critic/pull/1471) - all: rename gocritic to go-critic by [@&#8203;cristaloleg](https://redirect.github.com/cristaloleg) in [#&#8203;1482](https://redirect.github.com/go-critic/go-critic/pull/1482) - deps: bump golang.org/x/tools from 0.31.0 to 0.32.0 by [@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in [#&#8203;1484](https://redirect.github.com/go-critic/go-critic/pull/1484) - checker/badCond: rhs should be also check for safe expr by [@&#8203;codeimmortal](https://redirect.github.com/codeimmortal) in [#&#8203;1486](https://redirect.github.com/go-critic/go-critic/pull/1486) - deps: bump golang.org/x/tools from 0.32.0 to 0.33.0 by [@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in [#&#8203;1489](https://redirect.github.com/go-critic/go-critic/pull/1489) - checker: add `zeroByteRepeat` for avoiding `bytes.Repeat([]byte{0}, x)` by [@&#8203;codeimmortal](https://redirect.github.com/codeimmortal) in [#&#8203;1488](https://redirect.github.com/go-critic/go-critic/pull/1488) - docs/readme: add Homebrew install instructions by [@&#8203;krehel](https://redirect.github.com/krehel) in [#&#8203;1491](https://redirect.github.com/go-critic/go-critic/pull/1491) - deps: bump golang.org/x/tools from 0.33.0 to 0.34.0 by [@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in [#&#8203;1492](https://redirect.github.com/go-critic/go-critic/pull/1492) - deps: bump golang.org/x/tools from 0.34.0 to 0.35.0 by [@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in [#&#8203;1498](https://redirect.github.com/go-critic/go-critic/pull/1498) - ci: bump actions/checkout from 4 to 5 by [@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in [#&#8203;1501](https://redirect.github.com/go-critic/go-critic/pull/1501) - ci: bump actions/setup-go from 5 to 6 by [@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in [#&#8203;1503](https://redirect.github.com/go-critic/go-critic/pull/1503) - deps: bump golang.org/x/tools from 0.35.0 to 0.36.0 by [@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in [#&#8203;1500](https://redirect.github.com/go-critic/go-critic/pull/1500) #### New Contributors - [@&#8203;mx-psi](https://redirect.github.com/mx-psi) made their first contribution in [#&#8203;1470](https://redirect.github.com/go-critic/go-critic/pull/1470) - [@&#8203;codeimmortal](https://redirect.github.com/codeimmortal) made their first contribution in [#&#8203;1486](https://redirect.github.com/go-critic/go-critic/pull/1486) - [@&#8203;krehel](https://redirect.github.com/krehel) made their first contribution in [#&#8203;1491](https://redirect.github.com/go-critic/go-critic/pull/1491) **Full Changelog**: <go-critic/go-critic@v0.13.0...v0.14.0> </details> --- ### 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 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:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNDMuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE0My4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJTa2lwIENoYW5nZWxvZyIsImRlcGVuZGVuY2llcyJdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: dmathieu <[email protected]>
1 parent ee0c203 commit 9dea78c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

internal/tools/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ require (
8484
github.com/fsnotify/fsnotify v1.9.0 // indirect
8585
github.com/fzipp/gocyclo v0.6.0 // indirect
8686
github.com/ghostiam/protogetter v0.3.17 // indirect
87-
github.com/go-critic/go-critic v0.13.0 // indirect
87+
github.com/go-critic/go-critic v0.14.0 // indirect
8888
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
8989
github.com/go-git/go-billy/v5 v5.6.2 // indirect
9090
github.com/go-git/go-git/v5 v5.16.3 // indirect

internal/tools/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ github.com/ghostiam/protogetter v0.3.17 h1:sjGPErP9o7i2Ym+z3LsQzBdLCNaqbYy2iJQPx
154154
github.com/ghostiam/protogetter v0.3.17/go.mod h1:AivIX1eKA/TcUmzZdzbl+Tb8tjIe8FcyG6JFyemQAH4=
155155
github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c=
156156
github.com/gliderlabs/ssh v0.3.8/go.mod h1:xYoytBv1sV0aL3CavoDuJIQNURXkkfPA/wxQ1pL1fAU=
157-
github.com/go-critic/go-critic v0.13.0 h1:kJzM7wzltQasSUXtYyTl6UaPVySO6GkaR1thFnJ6afY=
158-
github.com/go-critic/go-critic v0.13.0/go.mod h1:M/YeuJ3vOCQDnP2SU+ZhjgRzwzcBW87JqLpMJLrZDLI=
157+
github.com/go-critic/go-critic v0.14.0 h1:fzA7pGprRPwgA2LwoiaHuWzZzmUEM7dZjihfFpiZQpQ=
158+
github.com/go-critic/go-critic v0.14.0/go.mod h1:/2QgW4QJIJ9aYCYTQ9RWKc+1KnMFouAJ/FmPylhzOoU=
159159
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI=
160160
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic=
161161
github.com/go-git/go-billy/v5 v5.6.2 h1:6Q86EsPXMa7c3YZ3aLAQsMA0VlWmy43r6FHqa/UNbRM=

sdk/log/batch.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,25 +375,25 @@ func newBatchConfig(options []BatchProcessorOption) batchConfig {
375375
c.maxQSize = c.maxQSize.Resolve(
376376
clearLessThanOne[int](),
377377
getenv[int](envarMaxQSize),
378-
clearLessThanOne[int](),
378+
clearLessThanOne[int](), // nolint:gocritic // the function argument is duplicated on purpose
379379
fallback[int](dfltMaxQSize),
380380
)
381381
c.expInterval = c.expInterval.Resolve(
382382
clearLessThanOne[time.Duration](),
383383
getenv[time.Duration](envarExpInterval),
384-
clearLessThanOne[time.Duration](),
384+
clearLessThanOne[time.Duration](), // nolint:gocritic // the function argument is duplicated on purpose
385385
fallback[time.Duration](dfltExpInterval),
386386
)
387387
c.expTimeout = c.expTimeout.Resolve(
388388
clearLessThanOne[time.Duration](),
389389
getenv[time.Duration](envarExpTimeout),
390-
clearLessThanOne[time.Duration](),
390+
clearLessThanOne[time.Duration](), // nolint:gocritic // the function argument is duplicated on purpose
391391
fallback[time.Duration](dfltExpTimeout),
392392
)
393393
c.expMaxBatchSize = c.expMaxBatchSize.Resolve(
394394
clearLessThanOne[int](),
395395
getenv[int](envarExpMaxBatchSize),
396-
clearLessThanOne[int](),
396+
clearLessThanOne[int](), // nolint:gocritic // the function argument is duplicated on purpose
397397
clampMax[int](c.maxQSize.Value),
398398
fallback[int](dfltExpMaxBatchSize),
399399
)

0 commit comments

Comments
 (0)