.golangci.yml 713 B

123456789101112131415161718192021222324252627282930313233343536
  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. nakedret:
  15. max-func-lines: 0 # Disallow any unnamed return statement
  16. exclusions:
  17. generated: lax
  18. presets:
  19. - comments
  20. - common-false-positives
  21. - legacy
  22. - std-error-handling
  23. paths:
  24. - third_party$
  25. - builtin$
  26. - examples$
  27. formatters:
  28. enable:
  29. - gofmt
  30. - goimports
  31. exclusions:
  32. generated: lax
  33. paths:
  34. - third_party$
  35. - builtin$
  36. - examples$