Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] enable exhaustive option explicit-exhaustive-switch #24412

Merged

Conversation

fatsheep9146
Copy link
Contributor

Description:
related #23266

According the suggestion here #23266 (comment)

We should enable exhaustive in a way that makes sure only check for the enum type pmetric.MetricType. So I should do following things

  • enable exhaustive with option explicit-exhaustive-switch
  • search for all components that use pmetric.MetricType with switch, and then determine if the related code should be added with //exhaustive:enforce comment. And if the linter is failed after the comment is added, we should solve the failure in the meantime.

This pr is to enable exhaustive with option explicit-exhaustive-switch

@fatsheep9146
Copy link
Contributor Author

failed lint check seemed unrelated with this pr

@fatsheep9146 fatsheep9146 added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jul 20, 2023
@fatsheep9146 fatsheep9146 requested a review from a team July 22, 2023 12:24
Signed-off-by: Ziqi Zhao <[email protected]>
@djaglowski djaglowski merged commit c55822f into open-telemetry:main Jul 22, 2023
@github-actions github-actions bot added this to the next release milestone Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore internal/core Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants