-
Notifications
You must be signed in to change notification settings - Fork 14
/
.golangci.yml
128 lines (113 loc) · 2.24 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# На момент завершения работы над курсом версия линтера:
# golangci-lint has version 1.45.2 built from 8bdc4d3f on 2022-03-24T11:51:26Z
run:
skip-dirs-use-default: false
tests: true
issues:
max-same-issues: 0
exclude:
- G107 # Potential HTTP request made with variable url
- G404 # Weak random number generator
- SA9003 # Empty branch
exclude-rules:
- source: .*github\.com/golang-ninja-courses/error-handling-mastery # Imports
linters:
- lll
- source: //go:generate
linters:
- lll
- path: examples/03-go-errors-concept/errorf-\d/main\.go
linters:
- govet
- path: examples/04-non-standard-modules/pkg-wrap-vs-fmt-3
linters:
- govet
- path: examples/05-errors-best-practices/ruleguard-wrap
linters:
- deadcode
- unused
- path: examples/08-future-of-errors-in-go2
linters:
- deadcode
- unused
- path: tasks
linters:
- typecheck
- path: _test\.go
linters:
- dupl
- funlen
- lll
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/golang-ninja-courses/error-handling-mastery)
lll:
line-length: 130
tagliatelle:
case:
use-field-name: true
rules:
json: snake
linters:
disable-all: true
enable:
- asciicheck
- bidichk
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- durationcheck
- errcheck
- errchkjson
- errname
- exportloopref
- funlen
- gci
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- gofmt
- gofumpt
- goheader
- goimports
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- ifshort
- importas
- ineffassign
- lll
- makezero
- misspell
- nestif
- nilerr
- nilnil
- noctx
- nolintlint
- prealloc
- predeclared
- revive
- rowserrcheck
- sqlclosecheck
- staticcheck
- structcheck
- stylecheck
- tagliatelle
- tenv
- thelper
- tparallel
- typecheck
- unconvert
- unused
- varcheck
- wastedassign
- whitespace