-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
58 lines (54 loc) · 1.01 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
linters:
enable:
# Default linters, which we make explicit.
- errcheck
- govet
- ineffassign
- staticcheck
- typecheck
- unused
# Optional linters, which we choose to apply additionally.
- bodyclose
- bidichk
- containedctx
- contextcheck
- errname
- errorlint
- forbidigo
- gci
- gocritic
- godot
- gofmt
- gosec
- lll
- misspell
- noctx
- reassign
- revive
- thelper
- unconvert
- unparam
- usestdlibvars
- wastedassign
- whitespace
- wsl
# @todo Proceed to check which ones require extra configuration.
linters-settings:
revive:
rules:
- name: exported
- name: var-naming
gci:
sections:
- standard
- prefix(github.com/stimtech/go-migration)
- prefix(github.com/stimtech)
- default
custom-order: true
issues:
include:
- "EXC0012" # revive exported comments
exclude-dirs:
- '^([a-zA-Z0-9\.-]+\/)*mocks?(\/|$)'
run:
go: '1.22'