.golangci.yml 755 B

123456789101112131415161718192021222324252627282930313233343536
  1. linters:
  2. enable:
  3. - exportloopref # Checks for pointers to enclosing loop variables
  4. - gofmt
  5. - goimports
  6. - gosec
  7. - ineffassign
  8. - misspell
  9. - nolintlint
  10. - revive
  11. - staticcheck
  12. - tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17
  13. - unconvert
  14. - unused
  15. - vet
  16. - dupword # Checks for duplicate words in the source code
  17. disable:
  18. - errcheck
  19. linters-settings:
  20. gosec:
  21. # The following issues surfaced when `gosec` linter
  22. # was enabled. They are temporarily excluded to unblock
  23. # the existing workflow, but still to be addressed by
  24. # future works.
  25. excludes:
  26. - G204
  27. - G305
  28. - G306
  29. - G402
  30. - G404
  31. run:
  32. timeout: 3m
  33. skip-dirs:
  34. - vendor