[codex] 收敛 preflight 规则并优化 comment 结构#111
Merged
utopiafar merged 2 commits intoMay 17, 2026
Merged
Conversation
PR Policy Preflight / PR 规则预检
Findings / 规则命中
Shadow mode: this result is informational and does not block merge. Shadow mode:当前结果仅供参考,不会阻塞合并。 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
#108 已经让 preflight 支持中英双语输出,但 PR comment 仍然是中英文交替阅读,信息密度高时不太顺。同时,原 preflight 规则对业务目录和改动规模的高风险判定偏硬,容易把普通代码变更误伤成高风险。
改动
.github/**、analysis_options.yaml、preflight/review policy 控制文件、diff 截断、不可 review 的二进制内容。flutter analyze/flutter test/ 必要 compile-build 承担。验证
python3 -m unittest tests.tools.test_pr_policy_check -vpython3 -m py_compile scripts/pr_policy_check.py tests/tools/test_pr_policy_check.pyscripts/pr_policy_check.py生成 Markdown,确认输出为中文区块 + English 区块。说明
这次仍保持 shadow mode,不把 preflight 判定作为阻塞依据。后续如果接入低风险快速通道,建议把
flutter analyze作为必需质量门禁:优先要求全绿;如果仓库存在历史 analyzer 问题,再维护 baseline 并要求 PR 不新增问题。