-
Notifications
You must be signed in to change notification settings - Fork 72
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
feat: Add golangci-lint linters - imports #1337
feat: Add golangci-lint linters - imports #1337
Conversation
/test unit-test |
|
||
.PHONY: golangci-lint | ||
golangci-lint: ## Download golangci-lint locally if necessary. | ||
$(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2) |
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.
latest version that works with go 1.20
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.
LGTM, I think this is an excellent start to standardizing imports!
4410086
to
75944d0
Compare
@mateusoliveira43 thanks for pushing this forward and taking small steps ++ |
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.
changes look sane to me, VISIACK
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
75944d0
to
bc5e142
Compare
/retest |
2 similar comments
/retest |
/retest |
Looks good to me, however to be perfectly honest, I'm not sure where the lint logs are in prow. Looked in unit and didn't see it. |
/LGTM |
@weshayutin in |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mateusoliveira43, shubham-pampattiwar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
1 similar comment
/retest |
/override ci/prow/4.12-e2e-test-aws |
@mateusoliveira43: Overrode contexts on behalf of mateusoliveira43: ci/prow/4.12-e2e-test-aws In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@mateusoliveira43: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
will open cherry-pick PR once there are no oadp-1.3 PRs open |
/cherry-pick oadp-1.3 |
@mateusoliveira43: #1337 failed to apply on top of branch "oadp-1.3":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
* feat: Add golangci-lint Signed-off-by: Mateus Oliveira <msouzaol@redhat.com> * fixup! feat: Add golangci-lint Signed-off-by: Mateus Oliveira <msouzaol@redhat.com> * fixup! feat: Add golangci-lint Signed-off-by: Mateus Oliveira <msouzaol@redhat.com> * fixup! feat: Add golangci-lint Signed-off-by: Mateus Oliveira <msouzaol@redhat.com> * fixup! feat: Add golangci-lint Signed-off-by: Mateus Oliveira <msouzaol@redhat.com> * fixup! feat: Add golangci-lint Signed-off-by: Mateus Oliveira <msouzaol@redhat.com> * fixup! feat: Add golangci-lint Signed-off-by: Mateus Oliveira <msouzaol@redhat.com> * fixup! feat: Add golangci-lint Signed-off-by: Mateus Oliveira <msouzaol@redhat.com> * fixup! feat: Add golangci-lint Signed-off-by: Mateus Oliveira <msouzaol@redhat.com> --------- Signed-off-by: Mateus Oliveira <msouzaol@redhat.com> (cherry picked from commit 76f0049)
Add more linting checks to project with
golangci-lint
. This PR fixes issues related to imports in the code..golangci.yaml
is similar to the one proposed at vmware-tanzu/velero#7194Test
Run
golangci-lint
with newmake lint
andmake lint-fix
commands.TODO
All go files changes where related to imports errors (with the help of
make lint-fix
command). There are still a lot of issues to be resolved in the code, but they will be fixed by categories in follow up PRs.