forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.json
100 lines (98 loc) · 2.27 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
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"run":{
"concurrency": 4,
"deadline": "3m",
"build-tags": ["V7"],
"skip-dirs": [
"^cf",
"^ci",
"^doc",
"^fixtures",
"^i18n",
"^plugin",
"^vendor",
"^actor/cfnetworkingaction",
"^actor/pluginaction",
"^actor/pushaction",
"^actor/v2.*",
"^actor/v3.*",
"^api/cloudcontroller/ccv2",
"^api/plugin",
"^api/router",
"^command/plugin",
"^command/v6",
"^integration/assets",
"^integration/v6",
"^util/generic",
"^util/manifest",
".*fake.*"
],
"skip-files": [
"command/v7/shared/noaa_debug_printer.go",
"integration/helpers/fake_server.go"
]
},
"linters":{
"disable-all": true,
"enable": [
"errcheck",
"unused",
"gosimple",
"structcheck",
"varcheck",
"ineffassign",
"deadcode",
"typecheck",
"interfacer",
"goconst",
"unconvert",
"depguard",
"misspell",
"gochecknoinits",
"gocritic",
"staticcheck"
]
},
"linters-settings": {
"errcheck":{
"check-blank": true
},
"goconst":{
"min-len": "2",
"min-occurrences": 3
},
"misspell": {
"locale": "US"
}
},
"issues":{
"max-same-issue": 0,
"exclude":[
"Error return value of `client.GetApplicationTasks` is not checked",
"Error return value of `logger.output.Stop` is not checked",
"Error return value of `request.ResetBody` is not checked",
"Error return value of `GinkgoWriter.Write` is not checked",
"Error return value of `c.terminalHelper.RestoreTerminal` is not checked",
"U1000: field `allproxy` is unused",
"U1000: field `dockerPassword` is unused",
"U1000: field `envCFStagingTimeout` is unused",
"U1000: field `envCFStartupTimeout` is unused",
"U1000: field `relatedCommands` is unused",
"U1000: field `usage` is unused",
"`allproxy` is unused",
"`dockerPassword` is unused",
"`envCFStagingTimeout` is unused",
"`envCFStartupTimeout` is unused",
"`relatedCommands` is unused",
"`usage` is unused"
],
"exclude-rules":[
{
"path": "_test.go",
"linters": [
"goconst"
]
}
]
}
}