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

task: validate import alias via importas #2804

Merged
merged 6 commits into from Apr 8, 2024
Merged

task: validate import alias via importas #2804

merged 6 commits into from Apr 8, 2024

Conversation

gssbzn
Copy link
Collaborator

@gssbzn gssbzn commented Mar 25, 2024

Enable importas to force consistent import alias

@gssbzn gssbzn marked this pull request as ready for review March 25, 2024 15:32
@gssbzn gssbzn requested review from a team as code owners March 25, 2024 15:32
jeroenvervaeke
jeroenvervaeke previously approved these changes Mar 25, 2024
Comment on lines -62 to -63
section-separators:
- newLine
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

invalid config

Comment on lines -9 to -12
govet:
check-shadowing: true
maligned:
suggest-new: true
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

invalid configs

Comment on lines -177 to -178
skip-dirs:
- internal/mocks
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

invalid config

@@ -24,7 +24,7 @@ import (
akov2common "github.com/mongodb/mongodb-atlas-kubernetes/v2/pkg/api/v1/common"
akov2status "github.com/mongodb/mongodb-atlas-kubernetes/v2/pkg/api/v1/status"
"go.mongodb.org/atlas-sdk/v20231115008/admin"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
apisv1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note: this is not idiomatic in kube upstream, metav1 is.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated

@@ -30,7 +30,7 @@ import (
akov2common "github.com/mongodb/mongodb-atlas-kubernetes/v2/pkg/api/v1/common"
akov2status "github.com/mongodb/mongodb-atlas-kubernetes/v2/pkg/api/v1/status"
"go.mongodb.org/atlas-sdk/v20231115008/admin"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
apisv1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

@s-urbaniak
Copy link
Collaborator

one comment about the meta/v1 import that refers to quite a bunch of changes.

@gssbzn
Copy link
Collaborator Author

gssbzn commented Mar 28, 2024

@s-urbaniak RFAL

@gssbzn gssbzn merged commit c3d7d65 into master Apr 8, 2024
18 checks passed
@gssbzn gssbzn deleted the lint-importas branch April 8, 2024 13:04
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.

None yet

3 participants