mirror of https://github.com/jetkvm/kvm.git
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
version: "2"
|
|
run:
|
|
# JetKVM target: ARMv7 (Rockchip RK3308, Cortex-A7)
|
|
# NOTE: Run 'make lint-go' instead of 'golangci-lint run' directly
|
|
# Audio CGO code requires cross-compilation environment from Makefile
|
|
build-tags:
|
|
- netgo
|
|
- timetzdata
|
|
- nomsgpack
|
|
linters:
|
|
enable:
|
|
- forbidigo
|
|
- misspell
|
|
- whitespace
|
|
- gochecknoinits
|
|
settings:
|
|
forbidigo:
|
|
forbid:
|
|
- pattern: ^fmt\.Print.*$
|
|
msg: Do not commit print statements. Use logger package.
|
|
- pattern: ^log\.(Fatal|Panic|Print)(f|ln)?.*$
|
|
msg: Do not commit log statements. Use logger package.
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
rules:
|
|
- linters:
|
|
- errcheck
|
|
path: _test.go
|
|
- linters:
|
|
- forbidigo
|
|
path: cmd/main.go
|
|
- linters:
|
|
- gochecknoinits
|
|
path: internal/logging/sse.go
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- goimports
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|