wpt.fyi
wpt.fyi copied to clipboard
Enable golangci-lint.
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 #2984