mirror of
https://github.com/jetkvm/kvm.git
synced 2025-09-16 08:38:14 +00:00
Enable more golangci-lint linters. * `forbidigo` to stop use of non-logger console printing. * `goimports` to make sure `import` blocks are formatted nicely. * `misspell` to catch spelling mistakes. * `whitespace` to catch whitespace issues. Signed-off-by: SuperQ <superq@gmail.com>
23 lines
418 B
YAML
23 lines
418 B
YAML
---
|
|
linters:
|
|
enable:
|
|
- forbidigo
|
|
- goimports
|
|
- misspell
|
|
# - revive
|
|
- whitespace
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- path: _test.go
|
|
linters:
|
|
- errcheck
|
|
|
|
linters-settings:
|
|
forbidigo:
|
|
forbid:
|
|
- p: ^fmt\.Print.*$
|
|
msg: Do not commit print statements. Use logger package.
|
|
- p: ^log\.(Fatal|Panic|Print)(f|ln)?.*$
|
|
msg: Do not commit log statements. Use logger package.
|