-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
79 lines (77 loc) · 1.72 KB
/
.golangci.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
run:
timeout: 5m
linters-settings:
exhaustive:
default-signifies-exhaustive: true
exhaustruct:
include:
- 'github.com/utsushiiro/transactional-outbox-and-inbox/.*'
gci:
sections:
- standard
- default
- prefix(github.com/utsushiiro/transactional-outbox-and-inbox)
forbidigo:
forbid:
- 'fmt\.Print.*'
- 'time\.Now()'
gofumpt:
extra-rules: false
revive:
rules:
# Based on the recommended configuration with adjustments for project needs.
# See: https://github.com/mgechev/revive#recommended-configuration
- name: context-as-argument
disabled: false
- name: context-keys-type
disabled: false
- name: error-naming
disabled: false
- name: error-return
disabled: false
- name: error-strings
disabled: false
- name: if-return
disabled: false
- name: indent-error-flow
disabled: false
- name: receiver-naming
disabled: false
- name: redefines-builtin-id
disabled: false
- name: superfluous-else
disabled: false
- name: time-equal
disabled: false
- name: time-naming
disabled: false
- name: unused-parameter
disabled: false
- name: var-declaration
disabled: false
linters:
disable-all: true
# https://golangci-lint.run/usage/linters/
enable:
- errcheck
- gosimple
- govet
- staticcheck
- unused
- asciicheck
- errorlint
- exhaustive
- exhaustruct
- forbidigo
- forcetypeassert
- gci
- gofumpt
- gosec
- nilerr
- nlreturn
- predeclared
- recvcheck
- revive
- unconvert
- unparam
- whitespace