.golangci.yml 947 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. version: "2"
  2. linters:
  3. enable:
  4. - nakedret
  5. - rowserrcheck
  6. - unconvert
  7. - unparam
  8. settings:
  9. govet:
  10. disable:
  11. # printf: non-constant format string in call to fmt.Errorf (govet)
  12. # showing up since golangci-lint version 1.60.1
  13. - printf
  14. staticcheck:
  15. checks:
  16. - all
  17. - "-SA1019" # This project is under active refactoring and not all code is up to date.
  18. - "-QF1001" # I'm a math noob
  19. - "-ST1016" # Some legit code uses this pattern
  20. nakedret:
  21. max-func-lines: 0 # Disallow any unnamed return statement
  22. exclusions:
  23. generated: lax
  24. presets:
  25. - comments
  26. - common-false-positives
  27. - legacy
  28. - std-error-handling
  29. paths:
  30. - third_party$
  31. - builtin$
  32. - examples$
  33. formatters:
  34. enable:
  35. - gofmt
  36. - goimports
  37. exclusions:
  38. generated: lax
  39. paths:
  40. - third_party$
  41. - builtin$
  42. - examples$