wpt.fyi icon indicating copy to clipboard operation
wpt.fyi copied to clipboard

Enable golangci-lint.

Open jcscottiii opened this issue 2 years ago • 0 comments

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

jcscottiii avatar Sep 30 '22 16:09 jcscottiii