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

Add support for golint #168

Merged
merged 2 commits into from
Sep 13, 2022
Merged

Conversation

marceloamaral
Copy link
Collaborator

@marceloamaral marceloamaral commented Sep 12, 2022

Using linters improves the code quality and readability by highlighting problems before they are executed, and it helps with the standardization of the codebase.

This PR enables golint. But, fixing the issues is out of the scope of this PR and will be done in another PR.

Additionally, this is PR is part of the effort for testing the code quality, as describe in the issue #161

Signed-off-by: Marcelo Amaral marcelo.amaral1@ibm.com

@marceloamaral marceloamaral added the kind/feature New feature or request label Sep 12, 2022
@marceloamaral marceloamaral changed the title Add support for golint with the revive package Add support for golint Sep 13, 2022
Signed-off-by: Marcelo Amaral <marcelo.amaral1@ibm.com>
Signed-off-by: Marcelo Amaral <marcelo.amaral1@ibm.com>
@rootfs
Copy link
Contributor

rootfs commented Sep 13, 2022

thanks, would you add this to GH action next?

@rootfs rootfs merged commit 0f41f8e into sustainable-computing-io:main Sep 13, 2022
@marceloamaral
Copy link
Collaborator Author

@rootfs the PR #170 adds this test to CI

Copy link
Collaborator

@SamYuan1990 SamYuan1990 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -136,6 +136,9 @@ test-verbose: ginkgo-set tidy-vendor
format:
gofmt -l -w pkg/ cmd/

golint:
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need lint before build?

Copy link
Collaborator

Choose a reason for hiding this comment

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

for ex
_build_containerized: format golint

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, but since we have many problems now it will be very annoying!
So, after we fix the issues, we can add lint as a requisite for building...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants