mirror of
https://github.com/coredns/coredns.git
synced 2025-12-06 02:15:11 -05:00
Enable canonicalheader linter to enforce proper HTTP header casing. This ensures headers use Go's canonical format (e.g., "Content-Type" instead of "content-type") for consistency. Fixes header casing in DoH implementation. Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
34 lines
536 B
YAML
34 lines
536 B
YAML
version: "2"
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- canonicalheader
|
|
- copyloopvar
|
|
- govet
|
|
- ineffassign
|
|
- 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$
|