fix(scripts): 补上首采模式逐条打印(上一次编辑未覆盖到)
Project CI / Backend tests (pull_request) Failing after 37s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 7m44s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 7m46s
Project CI / Repository checks (pull_request) Failing after 28s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 8m14s
Project CI / Native shell tests (pull_request) Successful in 11m10s
Project CI / Frontend tests (pull_request) Successful in 4m3s
Project CI / AI game creator shell web tests (pull_request) Failing after 4m15s
Project CI / Backend tests (pull_request) Failing after 37s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 7m44s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 7m46s
Project CI / Repository checks (pull_request) Failing after 28s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 8m14s
Project CI / Native shell tests (pull_request) Successful in 11m10s
Project CI / Frontend tests (pull_request) Successful in 4m3s
Project CI / AI game creator shell web tests (pull_request) Failing after 4m15s
prettier 把 for 循环重排成无花括号形式,导致上一次插入点没匹配上:现在真正逐条打印 [首采] 路径:行 | lint | 符号 + 条数与入册命令;--json 的 report[name].collected 已带上完整条目。实测:临时移除 agc-windows 基线条目 → 首采打印 14 行、exit 0;还原后 14/14 exit 0。
This commit is contained in:
@@ -493,10 +493,22 @@ for (const name of defaultProfiles()) {
|
||||
);
|
||||
console.log(` ${entry.message}`);
|
||||
}
|
||||
for (const entry of gone)
|
||||
for (const entry of gone) {
|
||||
console.log(
|
||||
` [已消除·可更新基线] ${entry.path} | ${entry.lint} | ${entry.symbol}`,
|
||||
);
|
||||
}
|
||||
if (collectOnly) {
|
||||
// 首采:还没有基线条目 ⇒ 逐条打印清单,首次 CI 日志里就能拿到可入册的键(路径|符号|lint)。
|
||||
for (const entry of warnings) {
|
||||
console.log(
|
||||
` [首采] ${entry.path}:${entry.line} | ${entry.lint} | ${entry.symbol}`,
|
||||
);
|
||||
}
|
||||
console.log(
|
||||
` [首采] 共 ${warnings.length} 条;入册:node scripts/check-rust-warnings.mjs --profile=${name} --update-baseline`,
|
||||
);
|
||||
}
|
||||
if (incomplete) {
|
||||
console.error(
|
||||
` [失败] 测量不完整:${packages.length - rebuilt.length} 个本 profile 的包本次未被重编,读到的告警数不可信。` +
|
||||
|
||||
Reference in New Issue
Block a user