.golangci.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. run:
  2. timeout: 5m
  3. linters-settings:
  4. gci:
  5. local-prefixes: github.com/external-secrets/external-secrets
  6. goconst:
  7. min-len: 3
  8. min-occurrences: 3
  9. gocritic:
  10. enabled-tags:
  11. - diagnostic
  12. - experimental
  13. - opinionated
  14. - performance
  15. - style
  16. disabled-checks:
  17. - dupImport
  18. - ifElseChain
  19. - octalLiteral
  20. - whyNoLint
  21. - wrapperFunc
  22. - importShadow
  23. - unnamedResult
  24. - unnecessaryBlock
  25. settings:
  26. rangeValCopy:
  27. sizeThreshold: 512
  28. hugeParam:
  29. sizeThreshold: 512
  30. gocyclo:
  31. min-complexity: 16
  32. golint:
  33. min-confidence: 0
  34. govet:
  35. check-shadowing: false
  36. lll:
  37. line-length: 300
  38. maligned:
  39. suggest-new: true
  40. misspell:
  41. locale: US
  42. linters:
  43. disable-all: true
  44. enable:
  45. - asciicheck
  46. - bodyclose
  47. - deadcode
  48. - depguard
  49. - dogsled
  50. - dupl
  51. - errcheck
  52. - errorlint
  53. - exhaustive
  54. - exportloopref
  55. - gci
  56. - goconst
  57. - gocritic
  58. - godot
  59. - gofmt
  60. - golint
  61. - goprintffuncname
  62. - gosec
  63. - gosimple
  64. - govet
  65. - ineffassign
  66. - interfacer
  67. - lll
  68. - maligned
  69. - misspell
  70. - nakedret
  71. - nolintlint
  72. - prealloc
  73. - rowserrcheck
  74. - scopelint
  75. - sqlclosecheck
  76. - staticcheck
  77. - structcheck
  78. - stylecheck
  79. - typecheck
  80. - unconvert
  81. - unparam
  82. - unused
  83. - varcheck
  84. - whitespace
  85. service:
  86. golangci-lint-version: 1.33.x