adguardhome-sync/.golangci.yml

38 lines
607 B
YAML
Raw Permalink Normal View History

2021-11-30 05:25:01 +08:00
run:
2022-09-01 01:11:53 +08:00
timeout: 5m
2021-11-30 05:25:01 +08:00
linters:
enable:
- asciicheck
- bodyclose
- dogsled
- durationcheck
- errcheck
- errorlint
- gci
- gofmt
- gofumpt
- goimports
- gosec
- gosimple
- govet
- importas
- ineffassign
- misspell
- nakedret
- nolintlint
- staticcheck
- unconvert
- unparam
- unused
2021-11-30 05:25:01 +08:00
linters-settings:
gosec:
# Exclude generated files
exclude-generated: true
excludes:
- G601 # not applicable in go 1.22 anymore
2021-11-30 05:25:01 +08:00
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
2022-09-01 01:11:53 +08:00