.golangci.yaml 600 B

1234567891011121314151617181920212223242526272829303132333435
  1. run:
  2. timeout: 5m
  3. linters:
  4. enable:
  5. - asasalint
  6. - bidichk
  7. - bodyclose
  8. - containedctx
  9. - contextcheck
  10. - exportloopref
  11. - gocheckcompilerdirectives
  12. # conditionally enable this on linux/macos
  13. # - gofmt
  14. # - goimports
  15. - intrange
  16. - misspell
  17. - nilerr
  18. - nolintlint
  19. - nosprintfhostport
  20. - testifylint
  21. - unconvert
  22. - unused
  23. - wastedassign
  24. - whitespace
  25. - usestdlibvars
  26. severity:
  27. default-severity: error
  28. rules:
  29. - linters:
  30. - gofmt
  31. - goimports
  32. - intrange
  33. - usestdlibvars
  34. severity: info