Closed nohehf closed 1 year ago
Did you heard about goreportcard? (badge that run multiple lints)
Here is an example: https://goreportcard.com/report/github.com/Escape-Technologies/goctopus
Here is a workflow: e.g https://github.com/Escape-Technologies/http-request-catcher/blob/main/.github/workflows/ci.yaml#L29
Looks nice; what about staticcheck
?
To ensure code quality, enforce linting and formatting in a CI. For formating use
go fmt
. For linting, sincegolint
is deprecated, maybego vet
orstaticcheck
. Determine if commit hooks are needed.