.golangci.yml 799 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. run:
  2. timeout: 5m
  3. modules-download-mode: readonly
  4. linters-settings:
  5. gofmt:
  6. simplify: true
  7. goimports:
  8. local-prefixes: github.com/girish17/op-mm-plugin
  9. govet:
  10. check-shadowing: true
  11. enable-all: true
  12. disable:
  13. - fieldalignment
  14. misspell:
  15. locale: US
  16. linters:
  17. disable-all: true
  18. enable:
  19. - bodyclose
  20. - errcheck
  21. - gocritic
  22. - gofmt
  23. - goimports
  24. - gosec
  25. - gosimple
  26. - govet
  27. - ineffassign
  28. - nakedret
  29. - revive
  30. - staticcheck
  31. - stylecheck
  32. - typecheck
  33. - unconvert
  34. - unused
  35. - whitespace
  36. issues:
  37. exclude-rules:
  38. - path: server/configuration.go
  39. linters:
  40. - unused
  41. - path: _test\.go
  42. linters:
  43. - bodyclose
  44. - scopelint # https://github.com/kyoh86/scopelint/issues/4