.golangci.yaml 665 B

123456789101112131415161718192021222324252627
  1. run:
  2. timeout: 5m
  3. linters:
  4. enable:
  5. - asasalint
  6. - bidichk
  7. - bodyclose
  8. - containedctx
  9. - contextcheck
  10. - exportloopref
  11. - gocheckcompilerdirectives
  12. # FIXME: for some reason this errors on windows
  13. # - gofmt
  14. # - goimports
  15. - misspell
  16. - nilerr
  17. - unused
  18. linters-settings:
  19. errcheck:
  20. # exclude the following functions since we don't generally
  21. # need to be concerned with the returned errors
  22. exclude-functions:
  23. - encoding/binary.Read
  24. - (*os.File).Seek
  25. - (*bufio.Writer).WriteString
  26. - (*github.com/spf13/pflag.FlagSet).Set
  27. - (*github.com/jmorganca/ollama/llm.readSeekOffset).Seek