Files
ollama/.golangci.yaml

52 lines
1.1 KiB
YAML
Raw Normal View History

version: "2"
2023-12-15 14:25:12 -08:00
linters:
enable:
- asasalint
- bidichk
- bodyclose
- containedctx
- gocheckcompilerdirectives
2024-06-04 11:51:39 -07:00
- intrange
2024-08-01 14:52:15 -07:00
- makezero
2023-12-15 14:25:12 -08:00
- misspell
- nilerr
2024-05-21 22:07:57 -07:00
- nolintlint
- nosprintfhostport
2024-05-21 22:21:04 -07:00
- unconvert
- usetesting
2024-05-21 22:21:04 -07:00
- wastedassign
- whitespace
disable:
- errcheck
- usestdlibvars
settings:
govet:
disable:
- unusedresult
staticcheck:
checks:
- all
- -QF* # disable quick fix suggestions
- -SA1019
- -ST1000 # package comment format
- -ST1003 # underscores in package names
- -ST1005 # error strings should not be capitalized
- -ST1012 # error var naming (ErrFoo)
- -ST1016 # receiver name consistency
- -ST1020 # comment on exported function format
- -ST1021 # comment on exported type format
- -ST1022 # comment on exported var format
- -ST1023 # omit type from declaration
severity:
default: error
rules:
- linters:
- gofmt
- goimports
- intrange
severity: info
formatters:
enable:
- gofmt
- gofumpt