-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
67 lines (63 loc) · 1.82 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
linters:
enable:
- gofmt
- govet
- errcheck
- staticcheck
- gosimple
- ineffassign
- gocritic
- gosec
- sloglint
run:
timeout: 5m
tests: false
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: false
# Enforce using attributes only (overrides no-mixed-args, incompatible with kv-only).
# Default: false
attr-only: false
# Enforce not using global loggers.
# Values:
# - "": disabled
# - "all": report all global loggers
# - "default": report only the default slog logger
# https://github.com/go-simpler/sloglint?tab=readme-ov-file#no-global
# Default: ""
no-global: default
# Enforce using methods that accept a context.
# Default: false
context: all
# 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: false
gosec:
severity: medium
confidence: medium
config:
G302: "0640"
G306: "0640"
issues:
exclude-rules:
- path: _test\.go
linters:
- errcheck
output:
print-issued-lines: true
print-linter-name: true