Files
onvif-go/.golangci.yml
T
0x524a c939fb6563 chore: refine golangci-lint configuration by removing unused linters
- Removed the gosimple and stylecheck linters from the golangci-lint configuration to streamline the linter setup and focus on more relevant checks.
2025-12-02 23:40:51 -05:00

106 lines
1.6 KiB
YAML

version: "2"
run:
timeout: 5m
tests: true
linters:
default: none
enable:
- errcheck
- govet
- staticcheck
- unused
- ineffassign
- misspell
- unconvert
- unparam
- gocritic
- gosec
- copyloopvar
- goconst
- gocyclo
- dupl
- funlen
- gocognit
- nakedret
- prealloc
- whitespace
- wrapcheck
- errname
- errorlint
- exhaustive
- godot
- err113
- mnd
- goprintffuncname
- nlreturn
- noctx
- nolintlint
- thelper
- tparallel
- wastedassign
settings:
errcheck:
check-type-assertions: true
check-blank: true
gocyclo:
min-complexity: 15
funlen:
lines: 120
statements: 60
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- dupImport
- ifElseChain
- octalLiteral
- whyNoLint
- wrapperFunc
godot:
scope: declarations
exclude:
- "^TODO:"
- "^FIXME:"
misspell:
locale: US
exclusions:
generated: lax
presets:
- comments
- std-error-handling
rules:
- path: _test\.go
linters:
- errcheck
- gosec
- funlen
- gocyclo
- gocognit
- dupl
- path: (media|device|ptz|imaging|device_security|device_additional)\.go
linters:
- dupl
- path: cmd/
linters:
- dupl
output:
formats:
text:
print-linter-name: true