.golangci.yml 780 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. run:
  2. timeout: 5m
  3. issues-exit-code: 1
  4. tests: true
  5. linters-settings:
  6. dupl:
  7. threshold: 150
  8. errcheck:
  9. check-type-assertions: false
  10. check-blank: false
  11. goconst:
  12. min-len: 3
  13. min-occurrences: 3
  14. gocyclo:
  15. min-complexity: 15
  16. gofmt:
  17. simplify: true
  18. goimports:
  19. local-prefixes: github.com/drakkan/sftpgo
  20. #govet:
  21. # report about shadowed variables
  22. #check-shadowing: true
  23. #enable:
  24. # - fieldalignment
  25. issues:
  26. include:
  27. - EXC0002
  28. - EXC0012
  29. - EXC0013
  30. - EXC0014
  31. - EXC0015
  32. linters:
  33. enable:
  34. - goconst
  35. - errcheck
  36. - gofmt
  37. - goimports
  38. - revive
  39. - unconvert
  40. - unparam
  41. - bodyclose
  42. - gocyclo
  43. - misspell
  44. - whitespace
  45. - dupl
  46. - rowserrcheck
  47. - dogsled
  48. - govet