You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.golangci.yml 750B

1234567891011121314151617181920212223242526272829303132
  1. # See https://github.com/golangci/golangci-lint#config-file
  2. run:
  3. issues-exit-code: 1 #Default
  4. tests: true #Default
  5. linters:
  6. enable:
  7. - misspell
  8. - goimports
  9. - golint
  10. - gofmt
  11. issues:
  12. exclude-rules:
  13. # helpers in tests often (rightfully) pass a *testing.T as their first argument
  14. - path: _test\.go
  15. text: "context.Context should be the first parameter of a function"
  16. linters:
  17. - golint
  18. # Yes, they are, but it's okay in a test
  19. - path: _test\.go
  20. text: "exported func.*returns unexported type.*which can be annoying to use"
  21. linters:
  22. - golint
  23. linters-settings:
  24. misspell:
  25. locale: US
  26. ignore-words:
  27. - cancelled
  28. goimports:
  29. local-prefixes: go.opentelemetry.io