Commit Graph

2 Commits

Author SHA1 Message Date
Matthieu MOREL 84e29958f1
[chore]: enable-all rules from go-critic (#13433)
#### Description

Enables all rules from
[go-critic](https://golangci-lint.run/usage/linters/#gocritic) by
default and disable the one that needs to be fixed

* https://go-critic.com/overview.html#appendcombine
* https://go-critic.com/overview.html#emptystringtest
* https://go-critic.com/overview.html#evalorder
* https://go-critic.com/overview.html#httpnobody
* https://go-critic.com/overview.html#nestingreduce
* https://go-critic.com/overview.html#regexpsimplify
* https://go-critic.com/overview.html#sloppyreassign
* https://go-critic.com/overview.html#sprintfquotedstring
* https://go-critic.com/overview.html#typeassertchain
* https://go-critic.com/overview.html#typeunparen

---------

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-07-24 10:34:03 +00:00
Joshua MacDonald 46101260f6
Middleware: config struct (part 2/4) (#12844)
**Description**

Adds the config struct from
https://github.com/open-telemetry/opentelemetry-collector/pull/12842.

**Link to tracking issue**

Part of
https://github.com/open-telemetry/opentelemetry-collector/issues/12603.

**Testing**

Yes. This PR introduces `extensionmiddlewaretest` helpers.

**Documentation**

Added.

---------

Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-04-17 17:51:13 +00:00