rog-golang-buddies / golang-template-repository

Kickstarter repository for a golang service
Apache License 2.0
17 stars 7 forks source link

Sane default for golanglint-ci #48

Open haani-niyaz opened 2 years ago

haani-niyaz commented 2 years ago

As per https://golangci-lint.run/usage/quick-start/ golanglint-ci enables a limited set of defaults. The disabled list contains some useful linters that perhaps should be enabled as it provides greater linting coverage. IMO some examples:

These could still be perceived as subjective so some consideration must be given to what is objectively useful. It is also best to consider adding these at the start of the project rather than midway as a custom/disparate styles may have proliferated through the code base and fixing the linting issues become cumbersome.

Acceptance Criteria

pallasite99 commented 2 years ago

@haani-niyaz Maybe this can help ... keeping it here for reference: https://github.com/rog-golang-buddies/golang-template-repository/issues/53