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

api: address golangci var-naming issues #17585

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

ivanvc
Copy link
Member

@ivanvc ivanvc commented Mar 14, 2024

Addresses the var-naming linter issues in api.

Renames the exported variables:

  • rpctypes.ErrGRPCClusterIdMismatch -> rpctypes.ErrGRPCClusterIDMismatch
  • rpctypes.ErrClusterIdMismatch -> rpctypes.ErrClusterIDMismatch

Should we need to deprecate rather than rename, I can add a linter exception.

Part of #17578.

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

@ivanvc ivanvc mentioned this pull request Mar 14, 2024
20 tasks
@ivanvc
Copy link
Member Author

ivanvc commented Mar 15, 2024

@ahrtr, let me know if I should deprecate the exported variables rather than renaming them as we agreed on client/'s

@ahrtr
Copy link
Member

ahrtr commented Mar 15, 2024

@ahrtr, let me know if I should deprecate the exported variables rather than renaming them as we agreed on client/'s

YES, I think so

Signed-off-by: Ivan Valdes <ivan@vald.es>
@ivanvc ivanvc force-pushed the address-api-var-naming-lint-rule branch from 7ee064a to 2190b0f Compare March 16, 2024 03:38
Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Thanks

@serathius
Copy link
Member

Nice, thanks for not breaking users and adding deprecations

@ahrtr ahrtr merged commit 8b9909e into etcd-io:main Mar 16, 2024
39 checks passed
@ivanvc ivanvc deleted the address-api-var-naming-lint-rule branch March 16, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants