.golangci.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. version: "2"
  2. run:
  3. allow-parallel-runners: true
  4. linters:
  5. default: none
  6. enable:
  7. - copyloopvar
  8. - dupl
  9. - errcheck
  10. - ginkgolinter
  11. - goconst
  12. - gocyclo
  13. - govet
  14. - ineffassign
  15. - lll
  16. - modernize
  17. - misspell
  18. - nakedret
  19. - prealloc
  20. - revive
  21. - staticcheck
  22. - unconvert
  23. - unparam
  24. - unused
  25. - logcheck
  26. settings:
  27. custom:
  28. logcheck:
  29. type: "module"
  30. description: Checks Go logging calls for Kubernetes logging conventions.
  31. revive:
  32. rules:
  33. - name: comment-spacings
  34. - name: import-shadowing
  35. modernize:
  36. disable:
  37. - omitzero
  38. exclusions:
  39. generated: lax
  40. rules:
  41. - linters:
  42. - lll
  43. path: api/*
  44. - linters:
  45. - dupl
  46. - lll
  47. path: internal/*
  48. paths:
  49. - third_party$
  50. - builtin$
  51. - examples$
  52. formatters:
  53. enable:
  54. - gofmt
  55. - goimports
  56. exclusions:
  57. generated: lax
  58. paths:
  59. - third_party$
  60. - builtin$
  61. - examples$