Escape-Technologies / goctopus

Blazing fast GraphQL discovery & fingerprinting toolbox.
GNU Affero General Public License v3.0
102 stars 11 forks source link

chore: add linting and formating checks #9

Closed nohehf closed 1 year ago

nohehf commented 1 year ago

To ensure code quality, enforce linting and formatting in a CI. For formating use go fmt. For linting, since golint is deprecated, maybe go vet or staticcheck. Determine if commit hooks are needed.

nullswan commented 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

nohehf commented 1 year ago

Looks nice; what about staticcheck?