File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def modify_filters(task_params, path_filters):
4949 if filter_type == 1 : # 扫描测试代码和业务代码
5050 LogPrinter .info ("Codelint only scans main and test code." )
5151 elif filter_type is None or filter_type == 2 : # 只扫描业务代码
52- LogPrinter .info ("Codelint only cans main code." )
52+ LogPrinter .info ("Codelint only scans main code." )
5353 path_filters ["exclusion" ].extend (test_source )
5454 path_filters ["yaml_filters" ]["lint_exclusion" ].extend (test_source )
5555 elif filter_type == 3 : # 只扫描测试代码
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ TCA 增强分析模块,需要用户额外部署 License 鉴权微服务,并
2222- 一台 CLS 微服务专属机器,CLS 微服务需要跟该机器绑定
2323
2424### 步骤
25- 1 . 在 CLS 目录下执行以下命令,获取 Server ID 和 Client License
25+ 1 . 在 [ CLS] ( https://github.com/Tencent/CodeAnalysis/tree/main/server/cls ) 目录下执行以下命令,获取 Server ID 和 Client License
2626``` shell
2727$ ./cls server
28282022-04-13 18:35:29.356510559 +0800 CST [INFO] Version: 20220328.1
3333- Server ID: 机器码,用于跟TCA团队申请License授权
3434- Client License: 提供给TCA Client, 方便TCA Client进行工具鉴权(重要,建议备份留底)
3535
36- 2 . 在 TCA Client 的 config.ini 中配置 CLS 微服务,比如
36+ 2 . 在 TCA Client 的 [ config.ini] ( https://github.com/Tencent/CodeAnalysis/blob/main/client/config.ini ) 中配置 CLS 微服务,比如
3737``` ini
3838[LICENSE_CONFIG]
3939; [可选]使用独立工具时,需要填写,默认不需要
@@ -67,7 +67,7 @@ TCA独立工具License申请邮件
6767| 首次登记的机器码 | xxx |
6868| 体验申请用途 | xxx |
6969
70- 4 . 收到 TCA 团队回复邮件之后,在 CLS 目录下的[ config.yaml] ( config.yaml ) 文件中填写License
70+ 4 . 收到 TCA 团队回复邮件之后,在 CLS 目录下的[ config.yaml] ( https://github.com/Tencent/CodeAnalysis/blob/main/server/cls/ config.yaml) 文件中填写License
7171注意!请遵从yaml格式,比如:
7272- 键值对中,冒号 ` : ` 后面一定要跟一个空白字符,示例 ` key: value ` .
7373
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ TCA 增强分析模块,需要用户额外部署 License 鉴权微服务,并
2222- 一台 CLS 微服务专属机器,CLS 微服务需要跟该机器绑定
2323
2424### 步骤
25- 1 . 在 CLS 目录下执行以下命令,获取 Server ID 和 Client License
25+ 1 . 在 [ CLS] ( https://github.com/Tencent/CodeAnalysis/tree/main/server/cls ) 目录下执行以下命令,获取 Server ID 和 Client License
2626``` shell
2727$ ./cls server
28282022-04-13 18:35:29.356510559 +0800 CST [INFO] Version: 20220328.1
3333- Server ID: 机器码,用于跟TCA团队申请License授权
3434- Client License: 提供给TCA Client, 方便TCA Client进行工具鉴权(重要,建议备份留底)
3535
36- 2 . 在 TCA Client 的 config.ini 中配置 CLS 微服务,比如
36+ 2 . 在 TCA Client 的 [ config.ini] ( https://github.com/Tencent/CodeAnalysis/blob/main/client/config.ini ) 中配置 CLS 微服务,比如
3737``` ini
3838[LICENSE_CONFIG]
3939; [可选]使用独立工具时,需要填写,默认不需要
@@ -67,7 +67,7 @@ TCA独立工具License申请邮件
6767| 首次登记的机器码 | xxx |
6868| 体验申请用途 | xxx |
6969
70- 4 . 收到 TCA 团队回复邮件之后,在 CLS 目录下的[ config.yaml] ( config.yaml ) 文件中填写License
70+ 4 . 收到 TCA 团队回复邮件之后,在 CLS 目录下的[ config.yaml] ( https://github.com/Tencent/CodeAnalysis/blob/main/server/cls/ config.yaml) 文件中填写License
7171注意!请遵从yaml格式,比如:
7272- 键值对中,冒号 ` : ` 后面一定要跟一个空白字符,示例 ` key: value ` .
7373
Original file line number Diff line number Diff line change 11# CLS使用文档
2- CLS(Common License Server), 是TCA独立工具的License鉴权微服务。
3-
4- ## 准备
5- 1 . 一台CLS微服务专属机器,CLS微服务需要跟该机器绑定
6-
7- ## 部署
8- 1 . 在CLS目录下执行以下命令,获取Server ID和client License
9- ``` shell
10- $ ./cls server
11- 2022-04-13 18:35:29.356510559 +0800 CST [INFO] Version: 20220328.1
12- 2022-04-13 18:35:29.44083463 +0800 CST [INFO] The client license is:
13- xxx
14- 2022-04-13 18:35:29.454552966 +0800 CST [INFO] License Server ID: xxx
15- ```
16- - Server ID: 机器码,用于跟TCA团队申请License授权
17- - client License: 提供给TCA Client, 方便TCA Client进行工具鉴权(重要,建议备份留底)
18-
19- 2 . 在TCA Client的[ config.ini] ( ../../client/config.ini ) 中配置CLS微服务,比如
20- ``` ini
21- [LICENSE_CONFIG]
22- ; [可选]使用独立工具时,需要填写,默认不需要
23- ; License服务器url, base_path, license
24- URL =http://<IP或者域名>:<port>
25- BASE_PATH =
26- LICENSE =<client License>
27- ```
28-
29- 3 . 跟TCA团队邮件申请License
30-
31- - 发送邮箱:
32- ```
33- v_cocohwang@tencent.com
34- anjingliu@tencent.com
35- yalechen@tencent.com
36- tommyzhang@tencent.com
37- ```
38-
39- - 格式如下:
40-
41- TCA独立工具License申请邮件
42-
43- | | |
44- | :----: | :----: |
45- | 申请人名称 | xxx |
46- | 申请人所在组织名称 | xxx |
47- | 申请人所在组织类型 | 可选选项:公司/学校/个人 |
48- | 申请人邮箱 | xxx |
49- | 申请人手机号码 | xxx |
50- | 首次登记的机器码 | xxx |
51- | 体验申请用途 | xxx |
52-
53- 4 . 收到TCA团队回复邮件之后,在CLS目录下的[ config.yaml] ( config.yaml ) 文件中填写License <br >
54- 注意!请遵从yaml格式,比如:
55- - 键值对中,冒号 ` : ` 后面一定要跟一个空白字符,示例 ` key: value ` .
56-
57- 5 . 执行以下命令启动
58- ``` shell
59- ./cls server -d
60- ```
61-
62- 6 . 启动TCA分析任务
63-
64- ## 高级
65- ### 自动重启
66- ``` shell
67- # 查找CLS进程ID
68- ps aux| grep cls
69- # 重启微服务
70- kill -USR2 < pid>
71- ```
2+ CLS(Common License Server), 是TCA独立工具的License鉴权微服务,请参考[ 使用文档] ( https://tencent.github.io/CodeAnalysis/zh/quickStarted/enhanceDeploy.html#cls%E9%83%A8%E7%BD%B2 ) 。
Original file line number Diff line number Diff line change 11用于统一存放工具(可外链仓库)
22
33## ** 注意**
4- 以下部分独立工具需要申请授权,具体操作可以参考[ CLS使用文档] ( ../server/cls/README.md ) .
4+ 以下部分独立工具需要申请授权,具体操作可以参考[ CLS使用文档] ( https://tencent.github.io/CodeAnalysis/zh/quickStarted/enhanceDeploy.html ) .
55
66## [ TCA-Armory(测试版)] ( https://github.com/TCATools/TCA-Armory )
77一款多功能的多语言静态代码分析工具,需申请License。
You can’t perform that action at this time.
0 commit comments