-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from Yuanruitao/bugfix_42
bugfix: 简介过长 & 按钮国际化名称不正确 #42
- Loading branch information
Showing
4 changed files
with
141 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# 插件功能 | ||
|
||
支持Linux、MacOS、Windows系统下执行所有CodeCC代码检查工具,包括代码缺陷(bkcheck等)、安全漏洞(敏感信息、高危组件等)、代码规范(CppLint、CheckStyle等)、圈复杂度、重复率等。 | ||
|
||
# 适用场景 | ||
|
||
## Linux: | ||
公共构建机(已预装Docker) | ||
私有构建机(需安装Docker) | ||
私有构建集群(需安装Docker) | ||
|
||
## MacOS: | ||
私有构建机(需安装Docker) | ||
私有构建集群(需安装Docker) | ||
|
||
## Windows(win10及以上): | ||
私有构建机(需安装Docker) | ||
私有构建集群(需安装Docker) | ||
|
||
# 使用限制和受限解决方案 | ||
私有构建机需要安装Docker | ||
|
||
|
||
# CodeCC特色功能 | ||
CodeCC是腾讯领先的代码分析平台,提供专业的代码检查解决方案及服务,为产品质量保驾护航。 | ||
|
||
- 目前已集成十余款含商用、开源、自研的代码检查工具,覆盖代码缺陷、安全漏洞、编码规范、圈复杂度、代码重复率五大维度; | ||
|
||
- 支持规则开发框架和工具开发框架,可自主将开发的规则或工具集成到CodeCC平台; | ||
|
||
- 自研bkcheck缺陷检查工具,可以支持游戏C++后台、Unreal客户端、Unity客户端的缺陷检查; | ||
|
||
- 与蓝盾流水线进行了深度整合,通过质量红线服务,可以在流水线中使用CodeCC的检查结果来控制代码库MR/PR、转测、部署等流程,从而使得每一阶段的流水线产出都符合质量标准。 | ||
|
||
# CodeCC能发现什么代码问题 | ||
|
||
## 发现代码缺陷 | ||
|
||
代表工具:ClangWarning、Clang | ||
代表规则:API使用、内存非法访问、程序卡死、资源泄露、空指针、性能低效…… | ||
|
||
## 发现安全漏洞 | ||
|
||
代表工具:敏感信息、高危组件 | ||
代表规则:密码/密钥等信息泄露、加密风险、XSS、CSRF、注入攻击…… | ||
|
||
## 代码规范,检查一些逻辑错误 | ||
|
||
代表工具:CppLint、CheckStyle、ESLint、StyleCop、Gometalinter、detekt、PHPCS、PyLint等 | ||
代表规则:注释、空代码块、异常处理、命名、格式化、风格…… | ||
|
||
## 控制复杂度 | ||
代表工具:圈复杂度 | ||
代表规则:函数圈复杂度>=20 | ||
|
||
## 检测重复率 | ||
代表工具:重复率 | ||
代表规则:文件代码重复率>=5% | ||
|
||
## 统计代码行数 | ||
代表工具:代码统计 | ||
代表规则:统计代码中各类语言代码行、注释行、空白行的情况 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Plugin function | ||
|
||
Support all CodeCC code inspection tools under Linux, MacOS, and Windows systems, including code defects (bkcheck, etc.), security vulnerabilities (sensitive information, high-risk components, etc.), code specifications (CppLint, CheckStyle, etc.), cyclomatic complexity, repetition rate, etc. . | ||
|
||
# Applicable scene | ||
|
||
## Linux: | ||
Public build machine (with Docker pre-installed) | ||
Private build machine (docker needs to be installed) | ||
Build a cluster privately (Docker needs to be installed) | ||
|
||
## MacOS: | ||
Private build machine (docker needs to be installed) | ||
Build a cluster privately (Docker needs to be installed) | ||
|
||
## Windows (win10 and above): | ||
Private build machine (docker needs to be installed) | ||
Build a cluster privately (Docker needs to be installed) | ||
|
||
# Use restricted and restricted solutions | ||
Private build machines need to install Docker | ||
|
||
|
||
# CodeCC Features | ||
CodeCC is Tencent's leading code analysis platform, providing professional code inspection solutions and services to protect product quality. | ||
|
||
- At present, more than ten code inspection tools including commercial, open source, and self-developed have been integrated, covering five dimensions of code defects, security vulnerabilities, coding standards, cyclomatic complexity, and code repetition rate; | ||
|
||
- Support rule development framework and tool development framework, and can independently integrate the developed rules or tools into the CodeCC platform; | ||
|
||
- Self-developed bkcheck defect inspection tool, which can support defect inspection of game C++ background, Unreal client, and Unity client; | ||
|
||
- Deeply integrated with the Blue Shield pipeline, through the quality red line service, you can use the inspection results of CodeCC in the pipeline to control the code base MR/PR, transfer test, deployment and other processes, so that the output of each stage of the pipeline can meet the Quality Standard. | ||
|
||
# CodeCC can find what code problems | ||
|
||
## Find code bugs | ||
|
||
Representative tools: ClangWarning, Clang | ||
Representative rules: API usage, illegal memory access, program freezes, resource leaks, null pointers, inefficient performance... | ||
|
||
## Security vulnerabilities found | ||
|
||
Representative tools: sensitive information, high-risk components | ||
Representative rules: information leakage such as passwords/keys, encryption risks, XSS, CSRF, injection attacks... | ||
|
||
## Code specification, check some logic errors | ||
|
||
Representative tools: CppLint, CheckStyle, ESLint, StyleCop, Gometalinter, detekt, PHPCS, PyLint, etc. | ||
Representative rules: comments, empty code blocks, exception handling, naming, formatting, style... | ||
|
||
## Control complexity | ||
Representative Tool: Cyclomatic Complexity | ||
Representative rules: function cyclomatic complexity>=20 | ||
|
||
## Detect repetition rate | ||
Rep Tool: Repetition Rate | ||
Representative rule: file code repetition rate>=5% | ||
|
||
## Count the number of lines of code | ||
Representative Tool: Code Statistics | ||
Representative rules: Statistical code lines, comment lines, and blank lines of various languages in the code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters