forked from MAIDUONGTHAO2010/fastschema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
executable file
·60 lines (57 loc) · 1003 Bytes
/
.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
run:
go: "1.19"
concurrency: 4
timeout: 10m
linters-settings:
errcheck:
exclude-functions:
- github.com/fastschema/fastschema/pkg/utils.WriteFile
- io.Copy
- (*ariga.io/atlas/sql/migrate.Planner).WritePlan
dupl:
threshold: 100
funlen:
lines: 150
statements: 140
linters:
disable-all: true
enable:
- asciicheck
- bodyclose
# - depguard
- dogsled
# - dupl
- errcheck
- funlen
- gocritic
- gofmt
- goheader
- gosec
- gosimple
- govet
- ineffassign
- misspell
- staticcheck
- stylecheck
- typecheck
- unconvert
- unused
- whitespace
issues:
exclude-rules:
- path: _test\.go
linters:
- dupl
- funlen
- gosec
- gocritic
- path: pkg/entdbadapter/query.go
linters:
- funlen
- path: schema/system_test.go
linters:
- govet
- path: \.go
linters:
- staticcheck
text: SA1019