MCPcopy
hub / github.com/Tencent/CodeAnalysis

github.com/Tencent/CodeAnalysis @20240730.2 sqlite

repository ↗ · DeepWiki ↗ · release 20240730.2 ↗
6,418 symbols 20,732 edges 1,250 files 2,949 documented · 46%
README
<img src='https://tencent.github.io/CodeAnalysis/media/Logo.svg' width="200"/>



<em>TCA, Tencent Cloud Code Analysis</em>



<em>code-named: CodeDog</em>

license docs

English | 简体中文

TCA Official Website

https://cloud.tencent.com/product/tcap

TCA Github Pages

https://tencent.github.io/CodeAnalysis/

https://github.com/TCATools

Repo Mirror

https://git.code.tencent.com/Tencent_Open_Source/CodeAnalysis.git

What is TCA

Tencent Cloud Code Analysis (TCA for short, code-named CodeDog inside the company early) is a comprehensive platform for code analysis and issue tracking. TCA consist of three components, server, web and client. It integrates of a number of self-developed tools, and also supports dynamic integration of code analysis tools in various programming languages.

Code analysis is a technology, using lexical analysis, syntax analysis, control-flow analysis, data-flow analysis to make a comprehensive analysis of the code, so as to verify whether the code meets the requirements of normative, security, reliability, maintainability and other indicators.

Using TCA can help team find normative, structural, security vulnerabilities and other issues in the code, continuously monitor the quality of the project code and issue alerts. At the same time, TCA opens up APIs to support connection with upstream and downstream systems, so as to integrate code analysis capabilities, ensure code quality, and be more conducive to inheriting an excellent team code culture.

组件图

流程图

Experience

Apply Link

Key Features

  1. Language support: It supports Java/C++/Objective-C/C#/JavaScript/Python/Go/PHP and more, covering common programming languages.
  2. Code inspection: Discover code quality defects, code specification problems, code security vulnerabilities, invalid codes, etc. At present, many self-developed and well-known open source analysis tools have been integrated. The layered architecture can support rapid self-service management tools for teams.
  3. Code measurement: Support comprehensive measurement of code from the three dimensions of code cyclomatic complexity, code repetition rate and code statistics.
  4. DevOps integration: The client can be started via the command line. Standard APIs support connection to upstream and downstream systems, and various DevOps systems.

Getting Started

Community

  • WeChat Official Account: 「腾讯云静态分析」. Follow and send "Join the group" to join the official open source communication WeChat group.
  • WeChat Group:

  • QQ Group: 361791391

  • Discussion
  • Wiki
  • White Paper

Changelogs

Contributing

License

TCA is MIT licensed

TCA Team Member

腾讯云代码分析团队成员

Extension points exported contracts — how you extend this code

Matcher (Interface)
Matcher scanner matcher [3 implementers]
tools/owl/scan/matcher.go
MicroApplicationLoader (Interface)
(no doc) [3 implementers]
web/packages/framework/src/loader/loader.ts
OrgData (Interface)
团队数据结构
web/packages/tca-manage/src/modules/jobs/types.ts
TeamData (Interface)
项目组数据结构
web/packages/tca-manage/src/modules/jobs/types.ts
ProjectData (Interface)
分析项目数据结构
web/packages/tca-manage/src/modules/jobs/types.ts
RestfulListAPIParams (Interface)
列表接口数据结构
web/packages/tca-analysis/global.d.ts

Core symbols most depended-on inside this repo

get
called by 508
client/node/app.py
info
called by 485
client/util/_scmbase.py
get
called by 456
server/projects/main/apps/codeproj/apis/v1.py
info
called by 406
server/projects/scmproxy/lib/_scmbase.py
get
called by 361
web/packages/tca-analysis/src/services/index.ts
error
called by 240
client/util/logutil.py
all
called by 163
server/projects/main/apps/scan_conf/core/rulemgr.py
save
called by 142
server/projects/main/apps/base/basemodel.py

Shape

Method 2,964
Class 1,725
Function 1,363
Interface 294
Enum 66
Struct 4
Route 2

Languages

Python73%
TypeScript26%
Java1%
Go1%

Modules by API surface

server/projects/main/apps/codeproj/serializers/base.py177 symbols
server/projects/main/apps/codeproj/apis/v3.py91 symbols
server/projects/main/apps/codeproj/models/base.py67 symbols
server/projects/main/apps/codeproj/core/projmgr.py62 symbols
web/packages/tca-analysis/src/services/projects.ts59 symbols
server/projects/scmproxy/lib/_scmbase.py56 symbols
client/util/_scmbase.py56 symbols
server/projects/main/apps/job/models/base.py54 symbols
server/projects/main/apps/codeproj/serializers/v3.py53 symbols
server/projects/analysis/apps/codelint/serializers/issue.py51 symbols
server/projects/analysis/apps/codemetric/apis/v2.py48 symbols
server/projects/main/apps/scan_conf/apis/v3/tool.py47 symbols

Dependencies from manifests, versioned

github.com/davecgh/go-spewv1.1.0 · 1×
github.com/inconshreveable/mousetrapv1.0.0 · 1×
github.com/mattn/go-colorablev0.1.9 · 1×
github.com/mattn/go-isattyv0.0.14 · 1×
github.com/mattn/go-runewidthv0.0.9 · 1×
github.com/olekukonko/tablewriterv0.0.5 · 1×
github.com/pmezard/go-difflibv1.0.0 · 1×
golang.org/x/sysv0.1.0 · 1×

Datastores touched

(mysql)Database · 1 repos
sec_sqlDatabase · 1 repos

For agents

$ claude mcp add CodeAnalysis \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact