Skip to content

集成静态代码审查与LLM审查到 CodeMage 插件生成流程,并扩展配置项与依赖#20

Open
qa296 wants to merge 1 commit intomainfrom
feat/plugin-audit-llm-static-ruff-pylint-mypy-reqs-config
Open

集成静态代码审查与LLM审查到 CodeMage 插件生成流程,并扩展配置项与依赖#20
qa296 wants to merge 1 commit intomainfrom
feat/plugin-audit-llm-static-ruff-pylint-mypy-reqs-config

Conversation

@qa296
Copy link
Owner

@qa296 qa296 commented Nov 15, 2025

Summary

在 CodeMage 插件生成流程中加入静态代码审查(ruff、pylint、mypy)以及 LL M 审查能力,新增 enable_static_review 与 enable_llm_review 配置项;新增 static_auditor 模块及对审查流程的集成。

Details

  • 新增 static_auditor.py,提供静态审查实现
  • 在 PluginGenerator 增加 _combined_review,用于合并静态与LLM审查
  • 用新审查替换原审查调用,静态审查先执行,LLM 审查后执行,并支持开启/关闭
  • 更新 _conf_schema.json 新增 enable_static_review、enable_llm_review
  • 更新 requirements.txt 以包含 ruff/pylint/mypy/aiohttp
  • 调整生成流程以适配新的审查逻辑

备注:新审查可能影响插件生成时长,需在 CI/环境中安装新增依赖。

…n flow

为 CodeMage 插件生成流程引入静态审查与LLM审查的组合评估能力,以提升生成插件的质量与安全性。

- 新增 static_auditor.py,实现基于 ruff、pylint、mypy 的静态分析以及 AstrBot AST 规则检查,聚合结果为统一格式。
- 新增 _combined_review 方法在 PluginGenerator 中,合并静态审查结果与 LLm 审查结果,支持 enable_static_review/enable_llm_review 开关。
- 将审查调用改为通过 _combined_review,静态审查在前、LLM 审查在后,并可配置开启/关闭。
- 更新 _conf_schema.json,新增 enable_static_review 与 enable_llm_review 配置项,向后兼容。
- 更新 main 流程以触发新的审查逻辑。
- 新增 requirements.txt,确保 ruff、pylint、mypy 和 aiohttp 等依赖可用。

CHANGELOG:
- BREAKING CHANGE: 无重大 breaking changes,但需要在环境中安装新增依赖。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant