ollama/.golangci.yaml

35 lines
600 B
YAML
Raw Normal View History

2023-12-16 06:25:12 +08:00
run:
timeout: 5m
linters:
enable:
- asasalint
- bidichk
- bodyclose
- containedctx
- contextcheck
- exportloopref
- gocheckcompilerdirectives
2024-06-05 02:53:23 +08:00
# conditionally enable this on linux/macos
# - gofmt
# - goimports
2024-06-05 02:51:39 +08:00
- intrange
2023-12-16 06:25:12 +08:00
- misspell
- nilerr
2024-05-22 13:07:57 +08:00
- nolintlint
- nosprintfhostport
2024-05-22 13:21:04 +08:00
- testifylint
- unconvert
2023-12-16 06:25:12 +08:00
- unused
2024-05-22 13:21:04 +08:00
- wastedassign
- whitespace
2024-06-05 02:51:39 +08:00
- usestdlibvars
severity:
default-severity: error
rules:
- linters:
- gofmt
- goimports
- intrange
- usestdlibvars
severity: info