Skip to content

Commit 0a549d1

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 02e220b + d156e35 commit 0a549d1

File tree

24 files changed

+416
-302
lines changed

24 files changed

+416
-302
lines changed

doc/.vuepress/configs/sidebar/en.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export const en: SidebarConfig = {
3030
'/en/guide/代码检查/工具/TCA-Armory-R.md',
3131
'/en/guide/代码检查/工具/TCA-Armory-C1.md',
3232
'/en/guide/代码检查/工具/TCA-Armory-Q1.md',
33-
'/en/guide/代码检查/工具/cppcheck.md',
3433
'/en/guide/代码检查/工具/Error-Prone.md',
3534
],
3635
},

doc/.vuepress/configs/sidebar/zh.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export const zh: SidebarConfig = {
3030
'/zh/guide/代码检查/工具/TCA-Armory-R.md',
3131
'/zh/guide/代码检查/工具/TCA-Armory-C1.md',
3232
'/zh/guide/代码检查/工具/TCA-Armory-Q1.md',
33-
'/zh/guide/代码检查/工具/cppcheck.md',
3433
'/zh/guide/代码检查/工具/Error-Prone.md',
3534
],
3635
},

doc/en/guide/客户端/本地分析.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
- 安装依赖:`pip3 install -r CodeAnalysis/client/requirements/app_reqs.pip`
2929

3030
**4. 安装第三方工具(docker下启动分析可跳过)**
31+
- 在命令行(windows环境下可以启动`git bash`)中执行以下命令:
32+
```bash
33+
bash ./scripts/base/install_bin.sh
34+
```
3135
- 进入到`client/requirements`目录
3236
- 在命令行中执行安装脚本`install.sh`(linux/mac环境)或`install.bat`(windows环境)
3337

doc/en/quickStarted/enhanceDeploy.md

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -85,35 +85,19 @@ Different deployment methods can modify the `config.ini` configuration according
8585
- Restart the container method: `docker-compose restart client`
8686
:::
8787

88-
3. Apply for a License by email to the TCA team
89-
90-
- Recipient email:
91-
```
92-
93-
94-
95-
96-
```
97-
98-
- The application email format is as follows:
99-
100-
Subject: **TCA Independent Tool License Application**
101-
102-
Content:
103-
| | |
104-
| :----: | :----: |
105-
| Applicant's Name | xxx |
106-
| Name of the Organization the Applicant Belongs to | xxx |
107-
| Type of Organization the Applicant Belongs to | Optional: Company/School/Individual |
108-
| Applicant's Email | xxx |
109-
| Applicant's Mobile Number | xxx |
110-
| Is it Privately Deployed | Yes |
111-
| First Registered Machine Code | xxx |
112-
| Purpose of Experience Application | xxx |
113-
| Client License | xxx |
114-
115-
- `First Registered Machine Code`: The `Server ID` output in step one
116-
- `Client License`: The `Client License` output in step one
88+
3. Submit a private cloud license application on the TCA Cloud official website
89+
- (1) Register or log in to an account on the [TCA Cloud official website](https://tca.tencent.com/);
90+
- (2) Enter the team that needs to apply for a private cloud license (if there is no team, you need to create a corresponding team);
91+
- (3) On the team page, enter the [Node Management]->[Private Cloud License Configuration] page in turn, then click the [Apply for License] button in the upper right corner, fill in the relevant information and submit the application. The specific information is as follows:
92+
- Applicant name
93+
- Applicant's organization name
94+
- Applicant's organization type: company/university/individual
95+
- Applicant's email address
96+
- Applicant's mobile phone number
97+
- Server ID: `Server ID` output in step 1, the machine code for the first registration
98+
- Client License: `Client License` output in step 1
99+
- Application scenario
100+
- (4) Then wait for the application license to be reviewed and approved, you can copy the private cloud license and continue with the following step 4.
117101

118102
4. After receiving the reply email from the TCA team, fill in the License in the `config.yaml` file in the CLS directory
119103

doc/zh/api/代码度量数据模块接口.md

Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ GET /server/analysis/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projec
1010

1111
| 参数 | 类型 | 描述 |
1212
| --- | --- | --- |
13-
| state | str | 问题状态, 1为未处理,2为已处理,3为关闭,可多选,格式为1,2,3 |
14-
| change_type | str | 圈复杂度变化情况,0为无,1为新增,2为删除,3为无变化,可多选,格式为1,2,3 |
15-
| author | str | 问题责任人 |
16-
| last_modifier | str | 最近修改人 |
17-
| file_path | str | 文件路径 |
18-
| scan_open | int | 发现问题的扫描编号 |
19-
| scan_close | int | 修复问题的扫描编号 |
20-
| worse | boolean | 圈复杂度是否恶化 |
21-
| over_cc_sum_gte | int | 圈复杂度总和最小值 |
22-
| over_cc_sum_lte | int | 圈复杂度总和最大值 |
23-
| over_cc_avg_gte | int | 平均圈复杂度最小值 |
24-
| over_cc_avg_lte | int | 平均圈复杂度总和最大值 |
25-
| over_cc_func_count_gte | int | 超标圈复杂度函数个数最小值 |
26-
| over_cc_func_count_lte | int | 超标圈复杂度函数个数最大值 |
13+
| state | str | 选填,问题状态, 1为未处理,2为已处理,3为关闭,可多选,格式为1,2,3 |
14+
| change_type | str | 选填,圈复杂度变化情况,0为无,1为新增,2为删除,3为无变化,可多选,格式为1,2,3 |
15+
| author | str | 选填,问题责任人 |
16+
| last_modifier | str | 选填,最近修改人 |
17+
| file_path | str | 选填,文件路径 |
18+
| scan_open | int | 选填,发现问题的扫描编号 |
19+
| scan_close | int | 选填,修复问题的扫描编号 |
20+
| worse | boolean | 选填,圈复杂度是否恶化 |
21+
| over_cc_sum_gte | int |选填, 圈复杂度总和最小值 |
22+
| over_cc_sum_lte | int | 选填,圈复杂度总和最大值 |
23+
| over_cc_avg_gte | int | 选填,平均圈复杂度最小值 |
24+
| over_cc_avg_lte | int | 选填,平均圈复杂度总和最大值 |
25+
| over_cc_func_count_gte | int | 选填,超标圈复杂度函数个数最小值 |
26+
| over_cc_func_count_lte | int | 选填,超标圈复杂度函数个数最大值 |
2727

2828
#### 返回参数
2929

@@ -84,13 +84,13 @@ GET /server/analysis/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projec
8484

8585
| 参数 | 类型 | 描述 |
8686
| --- | --- | --- |
87-
| status | str | 问题状态,1为需要关注,2为无需关注,可多选,格式为1,2,3 |
88-
| change_type | str | 圈复杂度变化情况,0为无,1为新增,2为删除,3为无变化,可多选,格式为1,2,3 |
89-
| author | str | 问题责任人 |
90-
| last_modifier | str | 最近修改人 |
91-
| file_path | str | 文件路径 |
92-
| ccn_gte | str | 圈复杂度最小值 |
93-
| ccn_lte | str | 圈复杂度最大值 |
87+
| status | str | 选填,问题状态,1为需要关注,2为无需关注,可多选,格式为1,2,3 |
88+
| change_type | str | 选填,圈复杂度变化情况,0为无,1为新增,2为删除,3为无变化,可多选,格式为1,2,3 |
89+
| author | str | 选填,问题责任人 |
90+
| last_modifier | str | 选填,最近修改人 |
91+
| file_path | str | 选填,文件路径 |
92+
| ccn_gte | str | 选填,圈复杂度最小值 |
93+
| ccn_lte | str | 选填,圈复杂度最大值 |
9494

9595
#### 返回结果
9696

@@ -151,13 +151,13 @@ GET /server/analysis/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projec
151151

152152
| 参数 | 类型 | 描述 |
153153
| --- | --- | --- |
154-
| status | str | 问题状态,1为需要关注,2为无需关注,可多选,格式为1,2,3 |
155-
| change_type | str | 圈复杂度变化情况,0为无,1为新增,2为删除,3为无变化,可多选,格式为1,2,3 |
156-
| author | str | 问题责任人 |
157-
| last_modifier | str | 最近修改人 |
158-
| file_path | str | 文件路径 |
159-
| ccn_gte | str | 圈复杂度最小值 |
160-
| ccn_lte | str | 圈复杂度最大值 |
154+
| status | str | 选填,问题状态,1为需要关注,2为无需关注,可多选,格式为1,2,3 |
155+
| change_type | str | 选填,圈复杂度变化情况,0为无,1为新增,2为删除,3为无变化,可多选,格式为1,2,3 |
156+
| author | str | 选填,问题责任人 |
157+
| last_modifier | str | 选填,最近修改人 |
158+
| file_path | str | 选填,文件路径 |
159+
| ccn_gte | str | 选填,圈复杂度最小值 |
160+
| ccn_lte | str | 选填,圈复杂度最大值 |
161161

162162
#### 返回结果
163163

@@ -218,20 +218,20 @@ GET /server/analysis/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projec
218218

219219
| 参数 | 类型 | 描述 |
220220
| --- | --- | --- |
221-
| state | str | 问题状态, 1为未处理,2为已处理,3为关闭,可多选,格式为1,2,3 |
222-
| change_type | str | 圈复杂度变化情况,0为无,1为新增,2为删除,3为无变化,可多选,格式为1,2,3 |
223-
| author | str | 问题责任人 |
224-
| last_modifier | str | 最近修改人 |
225-
| file_path | str | 文件路径 |
226-
| scan_open_id | int | 发现问题的扫描编号 |
227-
| scan_close_id | int | 修复问题的扫描编号 |
228-
| worse | boolean | 圈复杂度是否恶化 |
229-
| over_cc_sum_gte | int | 圈复杂度总和最小值 |
230-
| over_cc_sum_lte | int | 圈复杂度总和最大值 |
231-
| over_cc_avg_gte | int | 平均圈复杂度最小值 |
232-
| over_cc_avg_lte | int | 平均圈复杂度总和最大值 |
233-
| over_cc_func_count_gte | int | 超标圈复杂度函数个数最小值 |
234-
| over_cc_func_count_lte | int | 超标圈复杂度函数个数最大值 |
221+
| state | str | 选填,问题状态, 1为未处理,2为已处理,3为关闭,可多选,格式为1,2,3 |
222+
| change_type | str | 选填,圈复杂度变化情况,0为无,1为新增,2为删除,3为无变化,可多选,格式为1,2,3 |
223+
| author | str | 选填,问题责任人 |
224+
| last_modifier | str | 选填,最近修改人 |
225+
| file_path | str | 选填,文件路径 |
226+
| scan_open_id | int | 选填,发现问题的扫描编号 |
227+
| scan_close_id | int | 选填,修复问题的扫描编号 |
228+
| worse | boolean | 选填,圈复杂度是否恶化 |
229+
| over_cc_sum_gte | int | 选填,圈复杂度总和最小值 |
230+
| over_cc_sum_lte | int | 选填,圈复杂度总和最大值 |
231+
| over_cc_avg_gte | int | 选填,平均圈复杂度最小值 |
232+
| over_cc_avg_lte | int | 选填,平均圈复杂度总和最大值 |
233+
| over_cc_func_count_gte | int | 选填,超标圈复杂度函数个数最小值 |
234+
| over_cc_func_count_lte | int | 选填,超标圈复杂度函数个数最大值 |
235235

236236
#### 返回结果
237237

@@ -295,13 +295,13 @@ GET /server/analysis/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projec
295295

296296
| 参数 | 类型 | 描述 |
297297
| --- | --- | --- |
298-
| status | str | 问题状态,1为需要关注,2为无需关注,可多选,格式为1,2,3 |
299-
| change_type | str | 圈复杂度变化情况,0为无,1为新增,2为删除,3为无变化,可多选,格式为1,2,3 |
300-
| author | str | 问题责任人 |
301-
| last_modifier | str | 最近修改人 |
302-
| file_path | str | 文件路径 |
303-
| ccn_gte | str | 圈复杂度最小值 |
304-
| ccn_lte | str | 圈复杂度最大值 |
298+
| status | str | 选填,问题状态,1为需要关注,2为无需关注,可多选,格式为1,2,3 |
299+
| change_type | str | 选填,圈复杂度变化情况,0为无,1为新增,2为删除,3为无变化,可多选,格式为1,2,3 |
300+
| author | str | 选填,问题责任人 |
301+
| last_modifier | str | 选填,最近修改人 |
302+
| file_path | str | 选填,文件路径 |
303+
| ccn_gte | str | 选填,圈复杂度最小值 |
304+
| ccn_lte | str | 选填,圈复杂度最大值 |
305305

306306
#### 返回结果
307307

@@ -362,13 +362,13 @@ GET /server/analysis/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projec
362362

363363
| 参数 | 类型 | 描述 |
364364
| --- | --- | --- |
365-
| status | str | 问题状态,1为需要关注,2为无需关注,可多选,格式为1,2,3 |
366-
| change_type | str | 圈复杂度变化情况,0为无,1为新增,2为删除,3为无变化,可多选,格式为1,2,3 |
367-
| author | str | 问题责任人 |
368-
| last_modifier | str | 最近修改人 |
369-
| file_path | str | 文件路径 |
370-
| ccn_gte | str | 圈复杂度最小值 |
371-
| ccn_lte | str | 圈复杂度最大值 |
365+
| status | str | 选填,问题状态,1为需要关注,2为无需关注,可多选,格式为1,2,3 |
366+
| change_type | str | 选填,圈复杂度变化情况,0为无,1为新增,2为删除,3为无变化,可多选,格式为1,2,3 |
367+
| author | str | 选填,问题责任人 |
368+
| last_modifier | str | 选填,最近修改人 |
369+
| file_path | str | 选填,文件路径 |
370+
| ccn_gte | str | 选填,圈复杂度最小值 |
371+
| ccn_lte | str | 选填,圈复杂度最大值 |
372372

373373
#### 返回结果
374374

@@ -429,13 +429,13 @@ GET /server/analysis/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projec
429429

430430
| 参数 | 类型 | 描述 |
431431
| --- | --- | --- |
432-
| issue__state | str | 问题状态, 1为未处理,2为可忽略,3为关闭,可多选,格式为1,2,3 |
433-
| change_type | str | 重复文件更改类型,add为新增,del为删除,mod为删除,可多选,格式为add,del,mod |
434-
| issue__owner | str | 问题责任人 |
435-
| last_modifier | str | 最近修改人 |
436-
| file_path | str | 文件路径 |
437-
| duplicate_rate_gte | int | 重复率最小值 |
438-
| duplicate_rate_lte | int | 重复率最大值 |
432+
| issue__state | str | 选填,问题状态, 1为未处理,2为可忽略,3为关闭,可多选,格式为1,2,3 |
433+
| change_type | str | 选填,重复文件更改类型,add为新增,del为删除,mod为删除,可多选,格式为add,del,mod |
434+
| issue__owner | str | 选填,问题责任人 |
435+
| last_modifier | str | 选填,最近修改人 |
436+
| file_path | str | 选填,文件路径 |
437+
| duplicate_rate_gte | int | 选填,重复率最小值 |
438+
| duplicate_rate_lte | int | 选填,重复率最大值 |
439439

440440
#### 返回结果
441441

@@ -590,8 +590,8 @@ GET /server/analysis/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projec
590590

591591
| 参数 | 类型 | 描述 |
592592
| --- | --- | --- |
593-
| change_type | str | 改变类型(add、mod、del),支持多值,使用英文逗号','分隔 |
594-
| file_path | str | 文件路径 |
593+
| change_type | str | 选填,改变类型(add、mod、del),支持多值,使用英文逗号','分隔 |
594+
| file_path | str | 选填,文件路径 |
595595

596596
#### 返回结果
597597

doc/zh/api/代码扫描数据模块接口.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ GET /server/analysis/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projec
99
#### 参数
1010
| 参数 | 类型 | 描述 |
1111
| --- | --- | --- |
12-
| state | str | 问题状态, 1为未处理,2为已处理,3为关闭,可多选,格式为1,2,3 |
13-
| severity | str | 严重程度, 1为致命,2为错误,3为警告,4为提示,可多选,格式为1,2,3,4 |
14-
| resolution | str | 解决方式, 0为无,1为修复,2为无需修复,3为误报,4为重复单过滤,5为路径过滤,6为规则移除 |
15-
| author | str | 问题责任人 |
16-
| scan_open | int | 发现问题的扫描编号 |
17-
| scan_fix | int | 修复问题的扫描编号 |
18-
| ci_time_gte | str | 修复问题的起始时间,格式为"2021-01-01 00:00:00" |
19-
| ci_time_lte | str | 修复问题的结束时间 |
20-
| file_path | str | 文件路径 |
21-
| checkrule_display_name | str | 检查规则名 |
22-
| checkpackage | int | 问题所属的规则包 |
12+
| state | str | 选填,问题状态, 1为未处理,2为已处理,3为关闭,可多选,格式为1,2,3 |
13+
| severity | str | 选填,严重程度, 1为致命,2为错误,3为警告,4为提示,可多选,格式为1,2,3,4 |
14+
| resolution | str | 选填,解决方式, 0为无,1为修复,2为无需修复,3为误报,4为重复单过滤,5为路径过滤,6为规则移除 |
15+
| author | str | 选填,问题责任人 |
16+
| scan_open | int | 选填,发现问题的扫描编号 |
17+
| scan_fix | int | 选填,修复问题的扫描编号 |
18+
| ci_time_gte | str | 选填,修复问题的起始时间,格式为"2021-01-01 00:00:00" |
19+
| ci_time_lte | str | 选填,修复问题的结束时间 |
20+
| file_path | str | 选填,文件路径 |
21+
| checkrule_display_name | str | 选填,检查规则名 |
22+
| checkpackage | int | 选填,问题所属的规则包 |
2323

2424
#### 返回结果
2525
```JSON
@@ -143,17 +143,17 @@ GET /server/analysis/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projec
143143
#### 参数
144144
| 参数 | 类型 | 描述 |
145145
| --- | --- | --- |
146-
| state | str | 问题状态, 1为未处理,2为已处理,3为关闭,可多选,格式为1,2,3 |
147-
| severity | str | 严重程度, 1为致命,2为错误,3为警告,4为提示,可多选,格式为1,2,3,4 |
148-
| resolution | str | 解决方式, 0为无,1为修复,2为无需修复,3为误报,4为重复单过滤,5为路径过滤,6为规则移除 |
149-
| author | str | 问题责任人 |
150-
| scan_open_id | int | 发现问题的扫描编号 |
151-
| scan_fix_id | int | 修复问题的扫描编号 |
152-
| ci_time_gte | str | 修复问题的起始时间 |
153-
| ci_time_lte | str | 修复问题的结束时间 |
154-
| file_path | str | 文件路径 |
155-
| checkrule_display_name | str | 检查规则名 |
156-
| checkpackage | int | 问题所属的规则包 |
146+
| state | str | 选填,问题状态, 1为未处理,2为已处理,3为关闭,可多选,格式为1,2,3 |
147+
| severity | str | 选填,严重程度, 1为致命,2为错误,3为警告,4为提示,可多选,格式为1,2,3,4 |
148+
| resolution | str | 选填,解决方式, 0为无,1为修复,2为无需修复,3为误报,4为重复单过滤,5为路径过滤,6为规则移除 |
149+
| author | str | 选填,问题责任人 |
150+
| scan_open_id | int | 选填,发现问题的扫描编号 |
151+
| scan_fix_id | int | 选填,修复问题的扫描编号 |
152+
| ci_time_gte | str | 选填,修复问题的起始时间 |
153+
| ci_time_lte | str | 选填,修复问题的结束时间 |
154+
| file_path | str | 选填,文件路径 |
155+
| checkrule_display_name | str | 选填,检查规则名 |
156+
| checkpackage | int | 选填,问题所属的规则包 |
157157

158158
#### 返回结果
159159
```JSON
@@ -212,17 +212,17 @@ GET /server/analysis/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projec
212212
#### 参数
213213
| 参数 | 类型 | 描述 |
214214
| --- | --- | --- |
215-
| state | str | 问题状态, 1为未处理,2为已处理,3为关闭,可多选,格式为1,2,3 |
216-
| severity | str | 严重程度, 1为致命,2为错误,3为警告,4为提示,可多选,格式为1,2,3,4 |
217-
| resolution | str | 解决方式, 0为无,1为修复,2为无需修复,3为误报,4为重复单过滤,5为路径过滤,6为规则移除 |
218-
| author | str | 问题责任人 |
219-
| scan_open_id | int | 发现问题的扫描编号 |
220-
| scan_fix_id | int | 修复问题的扫描编号 |
221-
| ci_time_gte | str | 修复问题的起始时间 |
222-
| ci_time_lte | str | 修复问题的结束时间 |
223-
| file_path | str | 文件路径 |
224-
| checkrule_display_name | str | 检查规则名 |
225-
| checkpackage | int | 问题所属的规则包 |
215+
| state | str | 选填,问题状态, 1为未处理,2为已处理,3为关闭,可多选,格式为1,2,3 |
216+
| severity | str | 选填,严重程度, 1为致命,2为错误,3为警告,4为提示,可多选,格式为1,2,3,4 |
217+
| resolution | str | 选填,解决方式, 0为无,1为修复,2为无需修复,3为误报,4为重复单过滤,5为路径过滤,6为规则移除 |
218+
| author | str | 选填,问题责任人 |
219+
| scan_open_id | int | 选填,发现问题的扫描编号 |
220+
| scan_fix_id | int | 选填,修复问题的扫描编号 |
221+
| ci_time_gte | str | 选填,修复问题的起始时间 |
222+
| ci_time_lte | str | 选填,修复问题的结束时间 |
223+
| file_path | str | 选填,文件路径 |
224+
| checkrule_display_name | str | 选填,检查规则名 |
225+
| checkpackage | int | 选填,问题所属的规则包 |
226226

227227
#### 返回结果
228228
```JSON
@@ -271,4 +271,4 @@ GET /server/analysis/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projec
271271
"msg": "xxx",
272272
"status_code": 200
273273
}
274-
```
274+
```

0 commit comments

Comments
 (0)