Files
ddns-updater-qdm12-3/.golangci.yml
Quentin McGaw bcbf0938c1 chore(lint): add revive linter and fix issues
- Export returned struct types
- Do not export interfaces for other packages to use
2022-08-28 22:18:19 +00:00

69 lines
1.1 KiB
YAML

linters-settings:
maligned:
suggest-new: true
misspell:
locale: US
issues:
exclude-rules:
- path: cmd/updater/main.go
text: "mnd: Magic number: 4, in <argument> detected"
linters:
- gomnd
- path: cmd/updater/main.go
text: "mnd: Magic number: 2, in <argument> detected"
linters:
- gomnd
- path: _test\.go
linters:
- dupl
linters:
enable:
- asciicheck
- bodyclose
- dogsled
- dupl
- exhaustive
- exportloopref
- gci
- gochecknoglobals
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- goheader
- goimports
- gomnd
- goprintffuncname
- gosec
# - goerr113 # TODO
- importas
- ireturn
- lll
- misspell
- nakedret
- nestif
- nilerr
- noctx
- nolintlint
- prealloc
- predeclared
- revive
- rowserrcheck
- exportloopref
- sqlclosecheck
- thelper
- tparallel
- unconvert
- unparam
- wastedassign
- whitespace
run:
skip-dirs:
- .devcontainer
- .github