Open
Description
Definition of done:
- Replace the usage of golint with golangci-lint in Makefile
- Linters to enabled
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- containedctx
- dupl
- dogsled
- errname
- errorlint
- exhaustive
- exhaustruct
- exportloopref
- gochecknoglobals
- gocognit
- goconst
- gocyclo
- godot
- godox
- gofmt
- goheader
- gomoddirectives
- gosec
- importas
- ireturn
- lll
- misspell
- nakedret
- nestif
- nilerr
- nilnil
- nlreturn
- noctx
- prealloc
- revive
- unparam
- usestdlibvars
- Once replacing the linter, CI will fail. temporarily allow the lint stage to pass and add a TODO to remove it. add a reference to Fix all the lint issues after completing 2983 #2984