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

Update golangci-lint and reorder structs to satisfy the linter #393

Merged
merged 2 commits into from
May 12, 2022

Conversation

dashpole
Copy link
Contributor

@dashpole dashpole commented May 12, 2022

Updating the linter produced warnings about linter deprecations. govet also added a new linter error for struct alignment.

Reordering fields in public structs can be breaking if consumers initialize a struct without using named member arguments. Public structs this impacts includes:

  • exporter/collector.Config
  • exporter/collector.ClientConfig
  • exporter/collector.MetricConfig
  • exporter/collector.LogConfig
  • exporter/collector/integrationtest.MetricsTestServer
  • exporter/collector/integrationtest.LogsTestServer
  • exporter/collector/integrationtest.TestCase

@dashpole dashpole marked this pull request as ready for review May 12, 2022 16:53
@dashpole dashpole changed the title Update linter. Update golangci-lint. May 12, 2022
@dashpole dashpole requested a review from damemi May 12, 2022 17:00
@dashpole dashpole force-pushed the update_otel branch 2 times, most recently from 6f75c6a to e5aa4f5 Compare May 12, 2022 18:25
@dashpole dashpole changed the title Update golangci-lint. Update golangci-lint and reorder structs to satisfy the linter May 12, 2022
@dashpole dashpole merged commit 875976f into GoogleCloudPlatform:main May 12, 2022
@dashpole dashpole deleted the update_otel branch May 12, 2022 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants