CodeAnalysis icon indicating copy to clipboard operation
CodeAnalysis copied to clipboard

Static Code Analysis - 静态代码分析

Results 208 CodeAnalysis issues
Sort by recently updated
recently updated
newest added

web界面显示拉取gitee中的代码认证失败: ![image](https://user-images.githubusercontent.com/15081998/184136133-80f25423-fe4f-43df-bf5e-ee71c1936a58.png) 直接通过在scm容器中拉取代码却成功了 ![image](https://user-images.githubusercontent.com/15081998/184135859-f780649b-4c43-4c40-a1c8-40ca4047c7a2.png)

版本:最新版本 部署方式:docker-compose 现象:web界面显示成功 ![image](https://user-images.githubusercontent.com/15081998/184131623-c2a5124e-95f5-4ed8-b440-162bd88c5018.png) 日志报错 ![image](https://user-images.githubusercontent.com/15081998/184131207-8660fdb2-ece4-4e7f-abf5-00aff50d41a2.png) 详细日志: 2022-08-11 20:10:48,294-INFO: start to run task: JAFFBeta, execute_processes: ['compile', 'analyze', 'datahandle'] 2022-08-11 20:10:48,330-INFO: Load tool config: https://git.code.tencent.com/TCA/tca-tools/puppy-tools-config.git 2022-08-11 20:10:48,337-INFO: Initing common tools ......

有一定几率(5%-10%)某个工具一直在运行 已经采取了措施:配置了工蜂,client中使用USE_LOCAL_TOOL=True都无法避免卡死 卡死后:采取docker-compose restart 重启所有服务,恢复正常,单独重启client,analysis-worker不一定有效

https://github.com/google/error-prone

enhancement
help wanted

现阶段项目更新时需要先手动更新代码,然后执行命令停止服务和启动服务(如使用docker或docker-compose,还需要重新构建镜像然后再重新部署),希望能支持一键更新代码和重启服务(包含构建镜像)

help wanted

比如Bitbucket、华为云的CodeHub、阿里云的Codeup等

help wanted

代码分析结果: HTTPError: HTTP Error 500: Internal Server Error **************************************************************************************************** 2024-01-19 17:20:33,597-INFO: json report: /workspace/client/scan_status.json 2024-01-19 17:20:33,597-ERROR: HTTPError: HTTP Error 500: Internal Server Error Traceback (most recent call last): File "/workspace/client/node/localtask/localrunner.py",...

背景:仓库有12G,所以使用的是客户端分析上报模式,对应到服务端里面配置OAuth的验证模式 问题:错误处理能获取到codefile的问题,但是圈复杂度codefile报错 详细日志如下: 服务端报错堆栈信息 ![4f1490903723364db6ac3c31dfc77bc](https://github.com/Tencent/CodeAnalysis/assets/3351405/4a91720e-91cb-42bb-a4a9-20941d64acae) 圈复杂度接口返回400 ![image](https://github.com/Tencent/CodeAnalysis/assets/3351405/be5fdee6-3db5-4094-9b46-e8dd77ef4b25) 问题处理接口codefile返回正常没问题 ![image](https://github.com/Tencent/CodeAnalysis/assets/3351405/330d37e7-54f8-423a-8c4b-ded8c951b402) 这是什么问题?

仓库https://xxxxxxxx/embedded/camera/ambarella/h22/oner.git 仓内包含submodule 子仓 [submodule "rtos/app/multivin/AAA"] path = rtos/app/multivin/AAA url = git@xxxxxxxx:embedded/camera/`ambarella/aip/aip2.git` [submodule "ambalink_sdk_4_9/pkg/bbb"] path = ambalink_sdk_4_9/pkg/bbb url = [email protected]:embedded/camera/`ambarella/aip/aip1_ambalink.git` 遇到scm故障报错,其中凭据均有这几个仓库的权限 ![image](https://github.com/Tencent/CodeAnalysis/assets/79590928/e5f3842b-65af-4860-b201-1a8a371b4fb4) 执行结果:节点端SCM任务故障 ScmAuthFailedError: fatal: Authentication failed for 'http://xxxxxxxx/embedded/camera/ambarella/aip/aip1_ambalink.git/' fatal: clone...