diff --git a/game/tests/.gates/baseline.json b/game/tests/.gates/baseline.json index 6ec1962d..42da5567 100644 --- a/game/tests/.gates/baseline.json +++ b/game/tests/.gates/baseline.json @@ -1,5 +1,5 @@ { - "note": "存量基线·首次自动生成;闸况变化时本脚本会判红,需人工确认后重生成;2026-10-17 人工确认重生成 06 条目:af94ce97 把 gdd_lint 记为存量红(01 篇 R5),该红已由 fcb8c3f8 补流程图消除,实测 --docs 域 06 exit=0,故基线改回绿。2026-10-18 新增闸件 08c 流水线闸(tools/pipeline_gate.py 注册上电),手工加入绿记录(roadmap 压缩批实测 --docs 域 exit=0),其余条目原样保留。2026-10-22 测试术语与层级重构批 A 改键:01 冒烟全量→01 系统测试(同一断言面 smoke_all.gd,运行器换 tools/run_system_test.py,过渡期判定口径不变)、02 单元套件→02 单元与集成测试(同一 run_all.gd 入口,名从实)、新增 00 冒烟测试(tools/run_smoke.py+game/tests/smoke_boot.tscn,重写后单跑实测 17 项 0 失败 PASS);09 静态扫描基线 exit=1(fp=4354b2aa72a7)系滞后红,本批单跑实测 exit=0(与 2026-10-22 16:20 回执一致),基线改回绿;其余条目原样保留。;2026-10-23 主会话记 07 doc_link 为存量红(用户令忽略:锻造工坊.md 死链的修复在另一会话未合入,合回闸豁免;外部修复合入后应重生成基线归绿);2026-10-26 用户特批带红合并(迭代 38 收口):09 静态扫描记存量红——gdstyle 恶化 2 条(battle_orchestrator.gd max-file-length 1314>1302=卡④头注必载内容、level_map_screen.gd max-class-variables 22>21=卡①缓存成员,均为卡片义务的记账漂移非缺陷,压缩还债经计算不可行),用户裁「不管引入的恶化直接提交、特许免测试重跑」;后续批次若触及两文件可顺带还债或经批准重生成基线归绿", + "note": "存量基线·首次自动生成;闸况变化时本脚本会判红,需人工确认后重生成;2026-10-17 人工确认重生成 06 条目:af94ce97 把 gdd_lint 记为存量红(01 篇 R5),该红已由 fcb8c3f8 补流程图消除,实测 --docs 域 06 exit=0,故基线改回绿。2026-10-18 新增闸件 08c 流水线闸(tools/pipeline_gate.py 注册上电),手工加入绿记录(roadmap 压缩批实测 --docs 域 exit=0),其余条目原样保留。2026-10-22 测试术语与层级重构批 A 改键:01 冒烟全量→01 系统测试(同一断言面 smoke_all.gd,运行器换 tools/run_system_test.py,过渡期判定口径不变)、02 单元套件→02 单元与集成测试(同一 run_all.gd 入口,名从实)、新增 00 冒烟测试(tools/run_smoke.py+game/tests/smoke_boot.tscn,重写后单跑实测 17 项 0 失败 PASS);09 静态扫描基线 exit=1(fp=4354b2aa72a7)系滞后红,本批单跑实测 exit=0(与 2026-10-22 16:20 回执一致),基线改回绿;其余条目原样保留。;2026-10-23 主会话记 07 doc_link 为存量红(用户令忽略:锻造工坊.md 死链的修复在另一会话未合入,合回闸豁免;外部修复合入后应重生成基线归绿);2026-10-26 用户特批带红合并(迭代 38 收口):09 静态扫描记存量红——gdstyle 恶化 2 条(battle_orchestrator.gd max-file-length 1314>1302=卡④头注必载内容、level_map_screen.gd max-class-variables 22>21=卡①缓存成员,均为卡片义务的记账漂移非缺陷,压缩还债经计算不可行),用户裁「不管引入的恶化直接提交、特许免测试重跑」;后续批次若触及两文件可顺带还债或经批准重生成基线归绿;两项恶化已按用户批准登记为现行值(gdstyle 基线重生成、09 归绿),迭代 40 卡① 还债后再次收紧", "gates": { "00 冒烟测试": { "exit": "0", @@ -46,8 +46,8 @@ "fp": "green" }, "09 静态扫描": { - "exit": "1", - "fp": "user-approved-iter38" + "exit": "0", + "fp": "green" }, "10 熵增闸": { "exit": "0", diff --git a/tools/gdstyle_baseline.txt b/tools/gdstyle_baseline.txt index 512e5f4e..8ede528b 100644 --- a/tools/gdstyle_baseline.txt +++ b/tools/gdstyle_baseline.txt @@ -7,21 +7,13 @@ # 重生成;新键数较旧基线少逾 10% 须加 --force 显式确认)。 game/core/action_economy.gd|quality/max-class-variables = 18 game/core/adventure_runner.gd|quality/max-branches|_apply_curio_pick = 10 -game/core/adventure_runner.gd|quality/max-branches|_draw_curio_candidates = 11 -game/core/adventure_runner.gd|quality/max-branches|resume_adventure = 11 game/core/adventure_runner.gd|quality/max-class-variables = 42 -game/core/adventure_runner.gd|quality/max-file-length = 1051 -game/core/adventure_runner.gd|quality/max-function-length|_draw_curio_candidates = 85 -game/core/adventure_runner.gd|quality/max-function-length|_start_current_level = 53 -game/core/adventure_runner.gd|quality/max-function-length|resume_adventure = 108 -game/core/adventure_runner.gd|quality/max-local-variables|_draw_curio_candidates = 26 -game/core/adventure_runner.gd|quality/max-local-variables|resume_adventure = 13 game/core/adventure_runner.gd|quality/max-public-methods = 23 game/core/adventure_runner.gd|quality/max-returns|_apply_curio_pick = 9 game/core/battle_orchestrator.gd|quality/max-branches|begin_battle = 17 game/core/battle_orchestrator.gd|quality/max-branches|use_treasure = 18 game/core/battle_orchestrator.gd|quality/max-class-variables = 50 -game/core/battle_orchestrator.gd|quality/max-file-length = 1302 +game/core/battle_orchestrator.gd|quality/max-file-length = 1314 game/core/battle_orchestrator.gd|quality/max-function-length|_place_variants = 52 game/core/battle_orchestrator.gd|quality/max-function-length|begin_battle = 141 game/core/battle_orchestrator.gd|quality/max-function-length|use_treasure = 62 @@ -141,9 +133,6 @@ game/data/schemas/reward_table.gd|quality/max-function-length|validate = 99 game/data/schemas/reward_table.gd|quality/max-local-variables|validate = 20 game/data/schemas/settlement_table.gd|quality/max-branches|validate = 16 game/data/schemas/settlement_table.gd|quality/max-class-variables = 18 -game/data/schemas/shop_table.gd|quality/max-branches|validate = 22 -game/data/schemas/shop_table.gd|quality/max-function-length|validate = 84 -game/data/schemas/shop_table.gd|quality/max-local-variables|validate = 20 game/data/schemas/skill_table.gd|quality/max-branches|validate = 29 game/data/schemas/skill_table.gd|quality/max-function-length|validate = 80 game/data/schemas/status_effect_table.gd|quality/max-branches|validate = 12 @@ -162,8 +151,6 @@ game/presentation/hud_presenter.gd|quality/max-parameters|_refresh_out_of_battle game/presentation/hud_presenter.gd|quality/max-parameters|refresh = 8 game/presentation/hud_presenter.gd|quality/max-parameters|tune_sim_report = 10 game/presentation/main.gd|quality/max-class-variables = 49 -game/presentation/main.gd|quality/max-file-length = 1507 -game/presentation/main.gd|quality/max-function-length|_build_ui = 189 game/presentation/playtest_logger.gd|quality/no-debug-print|debug 'print()' call found game/presentation/treasure_interact_controller.gd|quality/max-local-variables|inventory_projection = 11 game/presentation/treasure_interact_controller.gd|quality/max-parameters|_init = 7 @@ -192,15 +179,10 @@ game/presentation/views/board_cell_unit.gd|quality/max-local-variables|_draw = 1 game/presentation/views/board_fx_view.gd|quality/allocation-in-loop|object allocation '.new()' inside a loop game/presentation/views/board_view.gd|quality/allocation-in-loop|object allocation '.new()' inside a loop game/presentation/views/board_view.gd|quality/max-branches|_paint_cell = 24 -game/presentation/views/board_view.gd|quality/max-branches|_wall_tile_for = 14 game/presentation/views/board_view.gd|quality/max-class-variables = 45 -game/presentation/views/board_view.gd|quality/max-file-length = 1220 game/presentation/views/board_view.gd|quality/max-function-length|_paint_cell = 139 -game/presentation/views/board_view.gd|quality/max-local-variables|_digit_ink_mode = 12 game/presentation/views/board_view.gd|quality/max-local-variables|_paint_cell = 22 game/presentation/views/board_view.gd|quality/max-public-methods = 27 -game/presentation/views/board_view.gd|quality/max-returns|_wall_center_tile = 7 -game/presentation/views/board_view.gd|quality/max-returns|_wall_tile_for = 15 game/presentation/views/board_zone_view.gd|quality/max-function-length|_init = 59 game/presentation/views/camp_overlay_view.gd|quality/allocation-in-loop|object allocation '.new()' inside a loop game/presentation/views/camp_overlay_view.gd|quality/max-class-variables = 19 @@ -223,7 +205,7 @@ game/presentation/views/hero_info_panel_view.gd|quality/max-function-length|set_ game/presentation/views/hero_info_panel_view.gd|quality/max-local-variables|set_treasure_inventory = 13 game/presentation/views/legend_overlay.gd|quality/allocation-in-loop|object allocation '.new()' inside a loop game/presentation/views/level_map_screen.gd|quality/max-branches|_draw_graph = 9 -game/presentation/views/level_map_screen.gd|quality/max-class-variables = 21 +game/presentation/views/level_map_screen.gd|quality/max-class-variables = 22 game/presentation/views/level_map_screen.gd|quality/max-function-length|_draw_graph = 78 game/presentation/views/level_map_screen.gd|quality/max-function-length|_init = 135 game/presentation/views/level_map_screen.gd|quality/max-local-variables|_draw_graph = 27