Open
Description
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:
- https://revive.run/
- https://github.com/butuzov/ireturn
- https://github.com/ssgreg/nlreturn
- https://github.com/Djarvur/go-err113
- etc.
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
- Assess linters that would be highly beneficial
- Options to disable certain rules should exist (if deemed not applicable)
- Add
.golangci.yml
file with enabled linters - Update docs