mirror of
https://github.com/coredns/coredns.git
synced 2025-10-26 15:54:16 -04:00
Enable intrange linter to enforce modern Go range syntax over traditional for loops, by converting: for i := 0; i < n; i++ to: for i := range n Adding type conversions where needed for compatibility with existing uint64 parameters. Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
35 lines
551 B
YAML
35 lines
551 B
YAML
version: "2"
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- canonicalheader
|
|
- copyloopvar
|
|
- govet
|
|
- ineffassign
|
|
- intrange
|
|
- staticcheck
|
|
- unconvert
|
|
- unused
|
|
- usetesting
|
|
- whitespace
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|