-
Notifications
You must be signed in to change notification settings - Fork 21
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 go linting tools to CI #51
Comments
@vharsh I'd like to work on this, could you assign me? |
I'm not sure where the openebsctl/.github/workflows/go.yml Lines 5 to 23 in 9001fb0
And should this section be completely removed from the Makefile? Lines 66 to 73 in 9001fb0
Can you please clarify this? |
@burntcarrot You can move the license checking part to goheader via GolangCI-lint & remove it from the go workflow. Regarding the |
Background
GolangCI-lint is a popular linter for go-projects which has support for a lot of popular linters like govet, golint, gofmt, etc, so it gets a bit easier than having to write individual shell scripts & complex Makefiles. It's super configurable so it's warnings can be silenced & it runs with similar toggles locally, i.e. the config file works well for the local development & CI.
It has a host of tools like golint, gofmt, govet and a bunch of unofficial tools like dupl, depguard, etc which should be added. Per the docs, using the official golangci-lint action might turn out to be a better approach than adding it via the Makefile in some other action/job.
The text was updated successfully, but these errors were encountered: