-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.json
87 lines (87 loc) · 1.75 KB
/
.golangci.json
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
{
"run": {
"go": "1.21.5",
"tests": true,
"skip-dirs-use-default": true,
"modules-download-mode": "readonly",
"timeout": "5m",
"skip-dirs": [
".build",
".git"
]
},
"output": {
"format": "colored-line-number",
"print-issued-lines": true,
"print-linter-name": true,
"uniq-by-line": true,
"sort-results": true
},
"linters": {
"enable-all": true,
"disable": [
"nosnakecase",
"deadcode",
"interfacer",
"structcheck",
"scopelint",
"maligned",
"varcheck",
"golint",
"ifshort",
"exhaustivestruct",
"funlen",
"cyclop",
"gocognit",
"forbidigo",
"gocyclo",
"maintidx",
"perfsprint"
]
},
"issues": {
"exclude-use-default": true,
"max-issues-per-linter": 0,
"max-same-issues": 0,
"fix": true
},
"linters-settings": {
"depguard": {
"rules": {
"main": {
"allow": [
"$gostd",
"github.com/pkg/errors",
"github.com/justindfuller",
"github.com/yuin",
"github.com/SherClockHolmes/webpush-go",
"cloud.google.com/go/cloudtasks/apiv2"
]
}
}
},
"varnamelen": {
"max-distance": 40,
"ignore-type-assert-ok": true,
"ignore-map-index-ok": true,
"ignore-chan-recv-ok": true,
"ignore-names": [
"i",
"md"
],
"ignore-decls": [
"wg errgroup.Group",
"wg sync.WaitGroup",
"w http.ResponseWriter",
"r *http.Request"
]
},
"wsl": {
"allow-cuddle-declarations": true,
"force-err-cuddling": true
},
"exhaustruct": {
"include": [".+\\.Test"]
}
}
}