-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangcilint.yaml
54 lines (52 loc) · 1.24 KB
/
.golangcilint.yaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
run:
concurrency: 2
timeout: 5m
go: "1.22"
linters:
disable-all: true
enable:
- errcheck
- gci
- gofmt
- goconst
- goimports
- gosec
- gosimple
- ineffassign
- misspell
- nakedret
- staticcheck
- stylecheck
- unconvert
- unused
- unparam
- misspell
- whitespace
- sloglint
linters-settings:
sloglint:
# Enforce not mixing key-value pairs and attributes.
# Default: true
no-mixed-args: false
# Enforce using key-value pairs only (overrides no-mixed-args, incompatible with attr-only).
# Default: false
kv-only: true
# Enforce using attributes only (overrides no-mixed-args, incompatible with kv-only).
# Default: false
attr-only: true
# Enforce using methods that accept a context.
# Default: false
context-only: true
# Enforce using static values for log messages.
# Default: false
static-msg: true
# Enforce using constants instead of raw keys.
# Default: false
no-raw-keys: true
# Enforce a single key naming convention.
# Values: snake, kebab, camel, pascal
# Default: ""
key-naming-case: snake
# Enforce putting arguments on separate lines.
# Default: false
args-on-sep-lines: true