2023-12-15 22:25:12 +00:00
|
|
|
run:
|
|
|
|
timeout: 5m
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- asasalint
|
|
|
|
- bidichk
|
|
|
|
- bodyclose
|
|
|
|
- containedctx
|
|
|
|
- contextcheck
|
|
|
|
- exportloopref
|
|
|
|
- gocheckcompilerdirectives
|
|
|
|
# FIXME: for some reason this errors on windows
|
|
|
|
# - gofmt
|
|
|
|
# - goimports
|
|
|
|
- misspell
|
|
|
|
- nilerr
|
|
|
|
- unused
|
|
|
|
linters-settings:
|
|
|
|
errcheck:
|
|
|
|
# exclude the following functions since we don't generally
|
|
|
|
# need to be concerned with the returned errors
|
|
|
|
exclude-functions:
|
|
|
|
- encoding/binary.Read
|
|
|
|
- (*os.File).Seek
|
|
|
|
- (*bufio.Writer).WriteString
|
|
|
|
- (*github.com/spf13/pflag.FlagSet).Set
|
2024-03-26 20:04:17 +00:00
|
|
|
- (*github.com/ollama/ollama/llm.readSeekOffset).Seek
|