-
-
Notifications
You must be signed in to change notification settings - Fork 522
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 var-naming from revive #2960
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite a few breaking changes here @mdelapenya due to public method renaming, thoughts?
arguments: | ||
- ["ID"] # AllowList | ||
- ["VM"] # DenyList | ||
- - upperCaseConst: true # Extra parameter (upperCaseConst|skipPackageNameChecks) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: is the second dash required, looks like a typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it’s not a typo, see this https://golangci-lint.run/usage/linters/#revive
func (c *ConsulContainer) ApiEndpoint(ctx context.Context) (string, error) { | ||
mappedPort, err := c.MappedPort(ctx, defaultHttpApiPort) | ||
// APIEndpoint returns host:port for the HTTP API endpoint. | ||
func (c *ConsulContainer) APIEndpoint(ctx context.Context) (string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: this is breaking change so needs ! added to the title and "BREAKING CHANGE" to the description, see conventional commits for details
9f52ed8
to
ff493de
Compare
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
ff493de
to
3f5ac46
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm tempted to block this PR until we release a v1. Almost all the modules will be affected, impacting lots of potential users of the library.
We already have some BC in the current release, some more in the previous one, but they were very narrowed. Here we are not offering a deprecation path for the renamed methods.
Wdyt?
I can understand, |
Thanks for understanding, and your work!, @mmorel-35, it's a pleasure working with engineers like you. If we can do that, first tackling the private fields, then we can move on with an another round of changes for the public API. We can keep this PR as reference, in draft, and send different chunks. Thoughts? |
Of course, I'll provide another branch to fit what we agree on. |
What does this PR do?
enable var-naming rule from revive
This also moves output configuration from Makefile to golangci-lint config
BREAKING CHANGES