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

server: address golangci var-naming issues #17624

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

ivanvc
Copy link
Member

@ivanvc ivanvc commented Mar 21, 2024

This PR addresses minor var-naming violations from the server directory.

Part of #17578

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

Comment on lines +122 to +125
//revive:disable:var-naming
func (s *storeRecorder) JsonStats() []byte { return nil }

//revive:enable:var-naming
Copy link
Member Author

Choose a reason for hiding this comment

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

Added this ignores, as it comes from v2's (*recorder) JsonStats().

@@ -26,7 +26,7 @@ import (
)

const (
ENV_VERIFY_VALUE_LOCK verify.VerificationType = "lock"
EnvVerifyValueLock verify.VerificationType = "lock"
Copy link
Member Author

Choose a reason for hiding this comment

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

Even though this is exported, I just renamed it as it is used only by the backend_tests package, which is in the same directory but in a different package.

@ivanvc ivanvc mentioned this pull request Mar 21, 2024
20 tasks
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

Copy link
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

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

Nice work @ivanvc, another one tidied up!

@ahrtr ahrtr merged commit ef0c12f into etcd-io:main Mar 21, 2024
38 checks passed
@ivanvc ivanvc deleted the address-server-var-naming-lint-rule branch March 21, 2024 23:06
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