-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yaml
More file actions
104 lines (101 loc) · 1.84 KB
/
.golangci.yaml
File metadata and controls
104 lines (101 loc) · 1.84 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: "2"
linters:
enable:
- bodyclose
- copyloopvar
- dogsled
- dupl
- funlen
- gochecknoinits
- goconst
- gocritic
- gocyclo
- goprintffuncname
- gosec
- lll
- misspell
- mnd
- nakedret
- noctx
- nolintlint
- revive
- sloglint
- staticcheck
- testifylint
- unconvert
- unparam
- whitespace
settings:
gosec:
excludes:
- G404
govet:
disable:
- fieldalignment
sloglint:
no-mixed-args: false
attr-only: true
context: all
static-msg: true
no-raw-keys: false
key-naming-case: snake
args-on-sep-lines: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- path: internal/store/db/transactions.go
text: Error return value of `tx.Rollback` is not checked
- linters:
- dupl
- errcheck
- funlen
- gocyclo
- gosec
- mnd
path: _test.go
- linters:
- dupl
- errcheck
- funlen
- gocyclo
- gosec
- mnd
path: banterbustest
- linters:
- mnd
path: internal/store/db/pgx.go
text: 'Magic number: 2'
- linters:
- errcheck
source: ^\s*defer\s+
paths:
- .go
- direnv
- internal/mocks
- internal/store/db
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofumpt
- goimports
settings:
goimports:
local-prefixes:
- gitlab.com/hmajid2301/banterbus
exclusions:
generated: lax
paths:
- .go
- direnv
- internal/mocks
- internal/store/db
- third_party$
- builtin$
- examples$