-
Notifications
You must be signed in to change notification settings - Fork 6
/
mac_tools.ini
393 lines (336 loc) · 13.9 KB
/
mac_tools.ini
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
; ---------------------------------------------------------------------------------------------------------------------
; 配置文件填写说明:
; 填写过程中,如果有多个值,用英文分号分隔
; [env_path] - 环境变量路径定义,基于tools目录的相对路径,比如:PYLINT_HOME : puppy_tools_common/pylint-1.4.5
; [env_value] - 环境变量值定义,比如:GIT_SSL_NO_VERIFY : 1
; [tool_url] - 工具库地址定义,格式:工具名:url,比如 CHECKSTYLE : http://xxxxxx.git
; [common] - 公共环境配置,比如git环境变量等, 包含以下4个字段
; env_path - 需要的环境变量路径,填写[env_path]中的KEY值,比如 env_path : ANDROID_HOME;CHECKSTYLE_HOME
; - 也支持KEY=VALUE格式,KEY为环境变量名,VALUE为环境变量值(基于tools目录的相对路径),推荐使用已经定义的变量,比如:JAVA_HOME=${env_path:JDK_8_HOME}
; env_value - 需要的环境变量值,填写[env_value]中的KEY值,比如 env_value : GIT_SSL_NO_VERIFY
; path - 需要加到path环境变量中的路径,基于tools目录的相对路径,推荐使用变量格式,比如 path : ${env_path:PYLINT_HOME}/bin
; tool_url - 需要拉取的工具库,多个地址用英文分号分隔,推荐使用变量格式,比如 tool_url : ${tool_url:PYLINT}
; [工具名] - 各工具配置,工具名需要与tool目录下的模块名匹配,字段格式参考[common]
; ---------------------------------------------------------------------------------------------------------------------
[base_value]
git_url=https://github.com/TCATools
;------------------
; 1.环境变量路径定义
;------------------
[env_path]
ANDROID_SDK_TOOL : mac-android-sdk-tools
CHECKSTYLE_HOME : checkstyle
CLOC_HOME : cloc
CPPCHECK_HOME : mac-cppcheck-1.78
CPPCHECK2_HOME : mac-cppcheck-2.6
FINDBUGS_HOME : findbugs
SPOTBUGS_HOME : spotbugs
CPPLINT_HOME : common-cpplint-1.4.5
COBRA_HOME : common-cobra-v2.0.0-alpha.5
DETEKT_171_HOME : common-detekt-cli-1.7.1-all
SCALASTYLE_HOME : common-scalastyle-1.0.0
LIZARD_HOME : common-lizard-1.17.5
PMD_HOME : common-pmd-bin-5.8.1
CPD_HOME : common-pmd-bin-6.19.0
DART_CCN_HOME : common-dart-code-metrics-1.7.1
GOROOT : mac-go-1.12.6
GOPATH : mac-go-1.12.6/go
GO_HOME : mac-go-1.12.6
GOMETALINTER_HOME : mac-gometalinter-v2.0.12
GOLANGCILINT_HOME : mac-golangci-lint-1.21.0
INFER_HOME : mac-infer-v0.15.0
JAVA_HOME : mac-jdk1.8.0_144
JDK_8_HOME : mac-jdk1.8.0_144
LUA_HOME : mac-lua-5.3.4
LUACHECK_HOME : mac-luacheck-0.21.2
NODE_HOME : mac-node-v12.16.3
NODE_PATH : mac-node-v12.16.3/lib/node_modules
PYTHON_HOME : mac-Python-v3.7.0
PYTHON27_HOME : mac-Python-v2.7.10
PYTHON37_HOME : mac-Python-v3.7.0
DART_HOME : mac-dart-sdk-v2.7.2
MONO_HOME : mac-Mono-6.8.0
SCC_HOME : mac-scc
SWIFTLINT_HOME : mac-swiftlint
STYLECOP_HOME : win-stylecopcli-1.4.0.0
LOONG_HOME : loong
GIT_LFS : mac-git-lfs-v3.1.2
ZIP_HOME : mac-p7zip_9.20.1/bin
DEPENDENCY_CHECK_HOME : tca_plugin_dependency_check
PATH : ${JAVA_HOME}/bin;${NODE_HOME};${NODE_HOME}/bin;${GOROOT}/bin;${LUA_HOME}/bin
;------------------
; 2.环境变量值定义
;------------------
[env_value]
GIT_SSL_NO_VERIFY : 1
JAVA_OPTIONS : -Xms32m -Xmx6512m
OBJC_DISABLE_INITIALIZE_FORK_SAFETY :YES
;------------------
; 3.工具git库定义
;------------------
[tool_url]
CLOC : ${base_value:git_url}/cloc.git
ANDROID_TOOL : ${base_value:git_url}/mac-android-sdk-tools.git
COBRA_V2_0_0_ALPHA_5 : ${base_value:git_url}/common-cobra-v2.0.0-alpha.5.git
PMD : ${base_value:git_url}/common-pmd-bin-5.8.1.git
CPD : ${base_value:git_url}/common-pmd-bin-6.19.0.git
CPPLINT : ${base_value:git_url}/common-cpplint-1.4.5.git
DETEKT_1_7_1 : ${base_value:git_url}/common-detekt-cli-1.7.1-all.git
LIZARD : ${base_value:git_url}/common-lizard-1.17.5.git
DART_CCN : ${base_value:git_url}/common-dart-code-metrics-1.7.1.git
SCALASTYLE : ${base_value:git_url}/common-scalastyle-1.0.0.git
GO : ${base_value:git_url}/mac-go-1.12.6.git
GOMETALINTER : ${base_value:git_url}/mac-gometalinter-v2.0.12.git
GOLANGCILINT : ${base_value:git_url}/mac-golangci-lint-1.21.0.git
JDK_8 : ${base_value:git_url}/mac-jdk1.8.0_144.git
LUA_5_3_4 : ${base_value:git_url}/mac-lua-5.3.4.git
LUACHECK : ${base_value:git_url}/mac-luacheck-0.21.2.git
NODE : ${base_value:git_url}/mac-node-v12.16.3.git
PYTHON27 : ${base_value:git_url}/mac-Python-v2.7.10.git
PYTHON37 : ${base_value:git_url}/mac-Python-v3.7.0.git
DART_SDK : ${base_value:git_url}/mac-dart-sdk-v2.7.2.git
MONO : ${base_value:git_url}/mac-Mono-6.8.0.git
SCC : ${base_value:git_url}/mac-scc.git
INFER_V0_15_0 : ${base_value:git_url}/mac-infer-v0.15.0.git
STYLECOP : ${base_value:git_url}/win-stylecopcli-1.4.0.0.git
SWIFTLINT : ${base_value:git_url}/mac-swiftlint.git
CHECKSTYLE : ${base_value:git_url}/checkstyle.git
FINDBUGS : ${base_value:git_url}/findbugs.git
SPOTBUGS : ${base_value:git_url}/spotbugs.git
CPPCHECK : ${base_value:git_url}/mac-cppcheck-1.78.git
CPPCHECK2 : ${base_value:git_url}/mac-cppcheck-2.6.git
GIT_LFS : ${base_value:git_url}/mac-git-lfs-v3.1.2.git
ZIP_HOME : ${base_value:git_url}/mac-p7zip_9.20.1.git
PHPCS : ${base_value:git_url}/custom-phpcs.git
FLAWFINDER : ${base_value:git_url}/flawfinder.git
SEMGREP : ${base_value:git_url}/custom-semgrep.git
SQLCHECK : ${base_value:git_url}/tca_plugin_sqlcheck.git
SHELLCHECK : ${base_value:git_url}/shellcheck.git
LICENSECLASSIFIER : ${base_value:git_url}/license-classifier.git
DEPENDENCY_CHECK : ${base_value:git_url}/tca_plugin_dependency_check/releases/download/v20230912.1/tca_plugin_dependency_check.zip
;------------------
; 4.公共环境配置
;------------------
[common]
env_path : SCC_HOME;ZIP_HOME
env_value : GIT_SSL_NO_VERIFY
path : ${env_path:GIT_LFS}
tool_url : ${tool_url:SCC};${tool_url:GIT_LFS};${tool_url:ZIP_HOME}
;------------------
; 5.各个工具配置
;------------------
[androidlint]
env_path : ANDROID_SDK_TOOL;JDK_8_HOME
env_value :
path : ${env_path:JDK_8_HOME}/bin
tool_url : ${tool_url:ANDROID_TOOL};${tool_url:JDK_8}
[checkstyle]
env_path : CHECKSTYLE_HOME;JDK_8_HOME
env_value :
path : ${env_path:JDK_8_HOME}/bin
tool_url : ${tool_url:CHECKSTYLE};${tool_url:JDK_8}
[cobra]
env_path : COBRA_HOME;PYTHON37_HOME
env_value :
path :
tool_url : ${tool_url:COBRA_V2_0_0_ALPHA_5};${tool_url:PYTHON37}
[codecount]
env_path : CLOC_HOME
env_value :
path : ${env_path:CLOC_HOME}
tool_url : ${tool_url:CLOC}
[cpd]
env_path : CPD_HOME;JDK_8_HOME;CLOC_HOME
env_value :
path : ${env_path:CPD_HOME}/bin;${env_path:JDK_8_HOME}/bin;${env_path:CLOC_HOME}
tool_url : ${tool_url:CPD};${tool_url:JDK_8};${tool_url:CLOC}
[cppcheck]
env_path : CPPCHECK_HOME
env_value :
path : ${env_path:CPPCHECK_HOME}
tool_url : ${tool_url:CPPCHECK}
[cppcheck2]
env_path : CPPCHECK2_HOME;PYTHON37_HOME
env_value :
path : ${env_path:CPPCHECK2_HOME};${env_path:PYTHON37_HOME}/bin
tool_url : ${tool_url:CPPCHECK2};${tool_url:PYTHON37}
[cpplint]
env_path : CPPLINT_HOME;PYTHON_HOME
env_value :
path : ${env_path:CPPLINT_HOME};${env_path:PYTHON_HOME}/bin
tool_url : ${tool_url:CPPLINT};${tool_url:PYTHON37}
[detekt]
env_path : DETEKT_171_HOME;JDK_8_HOME
env_value :
path : ${env_path:JDK_8_HOME}/bin
tool_url : ${tool_url:DETEKT_1_7_1};${tool_url:JDK_8}
[eslint]
env_path : NODE_HOME;NODE_PATH
env_value :
path : ${env_path:NODE_HOME};${env_path:NODE_HOME}/bin
tool_url : ${tool_url:NODE}
[eslint_vue]
env_path : NODE_HOME;NODE_PATH
env_value :
path : ${env_path:NODE_HOME};${env_path:NODE_HOME}/bin
tool_url : ${tool_url:NODE}
[eslint_typescript]
env_path : NODE_HOME;NODE_PATH
env_value :
path : ${env_path:NODE_HOME};${env_path:NODE_HOME}/bin
tool_url : ${tool_url:NODE}
[gometalinter]
env_path : GOMETALINTER_HOME;GO_HOME
env_value :
path : ${env_path:GOMETALINTER_HOME}
tool_url : ${tool_url:GOMETALINTER};${tool_url:GO}
[htmlcs]
env_path : NODE_HOME;NODE_PATH
env_value :
path : ${env_path:NODE_HOME};${env_path:NODE_HOME}/bin
tool_url : ${tool_url:NODE}
[lizard]
env_path : LIZARD_HOME;PYTHON37_HOME;DETEKT_171_HOME;DART_HOME;DART_CCN_HOME;JDK_8_HOME
env_value :
path : ${env_path:LIZARD_HOME};${env_path:PYTHON37_HOME}/bin;${env_path:JDK_8_HOME}/bin;${env_path:DART_HOME}/bin;${env_path:DART_CCN_HOME}/bin
tool_url : ${tool_url:LIZARD};${tool_url:PYTHON37};${tool_url:DETEKT_1_7_1};${tool_url:JDK_8};${tool_url:DART_SDK};${tool_url:DART_CCN}
[luacheck]
env_path : LUACHECK_HOME;LUA_HOME
env_value :
path : ${env_path:LUACHECK_HOME}/bin;${env_path:LUA_HOME}/bin
tool_url : ${tool_url:LUACHECK};${tool_url:LUA_5_3_4}
[pmd]
env_path : PMD_HOME;JDK_8_HOME
env_value :
path : ${env_path:PMD_HOME}/bin;${env_path:JDK_8_HOME}/bin
tool_url : ${tool_url:PMD};${tool_url:JDK_8}
[pylint]
env_path :
env_value :
path :
tool_url :
[flake8]
env_path : PYTHON27_HOME;PYTHON37_HOME
env_value :
path :
tool_url : ${tool_url:PYTHON27};${tool_url:PYTHON37}
[customscan]
env_path : PYTHON27_HOME;PYTHON37_HOME;LIZARD_HOME;DETEKT_171_HOME;DART_HOME;DART_CCN_HOME;JDK_8_HOME
env_value :
path : ${env_path:JDK_8_HOME}/bin;${env_path:DART_HOME}/bin;${env_path:DART_CCN_HOME}/bin
tool_url : ${tool_url:PYTHON27};${tool_url:PYTHON37};${tool_url:LIZARD};${tool_url:DETEKT_1_7_1};${tool_url:JDK_8};${tool_url:DART_SDK};${tool_url:DART_CCN}
[FunctionTooLong]
env_path : PYTHON37_HOME;LIZARD_HOME;DETEKT_171_HOME;DART_HOME;DART_CCN_HOME
env_value :
path : ${env_path:DART_HOME}/bin;${env_path:DART_CCN_HOME}/bin
tool_url : ${tool_url:PYTHON37};${tool_url:LIZARD};${tool_url:DETEKT_1_7_1};${tool_url:DART_SDK};${tool_url:DART_CCN}
[customtool]
env_path : PYTHON27_HOME;PYTHON37_HOME;LIZARD_HOME;DETEKT_171_HOME;DART_HOME;DART_CCN_HOME;JDK_8_HOME
env_value :
path : ${env_path:JDK_8_HOME}/bin;${env_path:DART_HOME}/bin;${env_path:DART_CCN_HOME}/bin
tool_url : ${tool_url:PYTHON27};${tool_url:PYTHON37};${tool_url:LIZARD};${tool_url:DETEKT_1_7_1};${tool_url:JDK_8};${tool_url:DART_SDK};${tool_url:DART_CCN}
[stylelint]
env_path : NODE_HOME;NODE_PATH
env_value :
path : ${env_path:NODE_HOME};${env_path:NODE_HOME}/bin
tool_url : ${tool_url:NODE}
[stylecop]
env_path : STYLECOP_HOME;MONO_HOME
env_value :
path : ${env_path:STYLECOP_HOME};${env_path:MONO_HOME}/bin
tool_url : ${tool_url:STYLECOP};${tool_url:MONO}
[dartanalyzer]
env_path : DART_HOME
env_value :
path : ${env_path:DART_HOME}/bin
tool_url : ${tool_url:DART_SDK}
[findbugs]
env_path : FINDBUGS_HOME;JDK_8_HOME
env_value :
path : ${env_path:FINDBUGS_HOME}/bin;${env_path:JDK_8_HOME}/bin
tool_url : ${tool_url:FINDBUGS};${tool_url:JDK_8}
[spotbugs]
env_path : SPOTBUGS_HOME;JDK_8_HOME
env_value :
path : ${env_path:SPOTBUGS_HOME}/bin;${env_path:JDK_8_HOME}/bin
tool_url : ${tool_url:SPOTBUGS};${tool_url:JDK_8}
[scalastyle]
env_path : SCALASTYLE_HOME;JDK_8_HOME
env_value :
path : ${env_path:SCALASTYLE_HOME}
tool_url : ${tool_url:SCALASTYLE};${tool_url:JDK_8}
[infer_cpp]
env_path : INFER_HOME
env_value :
path : ${env_path:INFER_HOME}/bin
tool_url : ${tool_url:INFER_V0_15_0}
[infer_java]
env_path : INFER_HOME
env_value :
path : ${env_path:INFER_HOME}/bin
tool_url : ${tool_url:INFER_V0_15_0}
[infer_objectivec]
env_path : INFER_HOME
env_value :
path : ${env_path:INFER_HOME}/bin
tool_url : ${tool_url:INFER_V0_15_0}
[swiftlint]
env_path : SWIFTLINT_HOME
env_value :
path : ${env_path:SWIFTLINT_HOME}
tool_url : ${tool_url:SWIFTLINT}
[jaaf]
env_path : LOONG_HOME
env_value :
path :
tool_url :
[jaff]
env_path : LOONG_HOME
env_value :
path :
tool_url :
[jafc]
env_path : LOONG_HOME
env_value :
path :
tool_url :
[phpcs]
env_path : PYTHON37_HOME
env_value :
path : ${env_path:PYTHON37_HOME}/bin
tool_url : ${tool_url:PYTHON37};${tool_url:PHPCS}
[flawfinder]
env_path : PYTHON37_HOME;PYTHON27_HOME
env_value :
path : ${env_path:PYTHON37_HOME}/bin;${env_path:PYTHON27_HOME}/bin
tool_url : ${tool_url:PYTHON37};${tool_url:PYTHON27};${tool_url:FLAWFINDER}
[semgrep]
env_path : PYTHON37_HOME
env_value :
path : ${env_path:PYTHON37_HOME}/bin
tool_url : ${tool_url:PYTHON37};${tool_url:SEMGREP}
[tca_plugin_sqlcheck]
env_path : PYTHON37_HOME
env_value :
path : ${env_path:PYTHON37_HOME}/bin
tool_url : ${tool_url:PYTHON37};${tool_url:SQLCHECK}
[shellcheck]
env_path : PYTHON37_HOME
env_value :
path : ${env_path:PYTHON37_HOME}/bin
tool_url : ${tool_url:PYTHON37};${tool_url:SHELLCHECK}
[license-classifier]
env_path : PYTHON37_HOME
env_value :
path : ${env_path:PYTHON37_HOME}/bin
tool_url : ${tool_url:PYTHON37};${tool_url:LICENSECLASSIFIER}
[tca_plugin_dependency_check]
env_path : PYTHON37_HOME;JAVA_HOME;JDK_8_HOME;GOROOT;GO_HOME;GOPATH;NODE_HOME;NODE_PATH
env_value :
path : ${env_path:PYTHON37_HOME}/bin;${env_path:JAVA_HOME}/bin;${env_path:GO_HOME}/bin;${env_path:NODE_HOME}/bin
tool_url : ${tool_url:DEPENDENCY_CHECK};${tool_url:PYTHON37};${tool_url:JDK_8};${tool_url:GO};${tool_url:NODE}
[golangcilint]
env_path : GOLANGCILINT_HOME;GO_HOME
env_value :
path : ${env_path:GOLANGCILINT_HOME}
tool_url : ${tool_url:GOLANGCILINT};${tool_url:GO}