-
Notifications
You must be signed in to change notification settings - Fork 16
/
.golangci.yml
37 lines (36 loc) · 933 Bytes
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Visit https://golangci-lint.run/ for usage documentation
# and information on other useful linters
issues:
max-same-issues: 0
linters:
disable-all: true
enable:
- durationcheck
- errcheck
- exportloopref
- forcetypeassert
- gofmt
- gosimple
- ineffassign
- makezero
- misspell
- nilerr
- predeclared
- staticcheck
- tenv
- unconvert
- unparam
- unused
- govet
- sloglint
linters-settings:
sloglint:
# Enforce using attributes only (overrides no-mixed-args, incompatible with kv-only).
attr-only: true
# Enforce using context methods on logger. This is very useful for us because it means we
# can easily integrate with the tflog package in terraform and pipe all log output correctly.
context: all
# Enforce a single key naming convention.
# Values: snake, kebab, camel, pascal
# Default: ""
key-naming-case: snake