chore(ai-review 狀態): 補 NaN 測試、排除 recordRateLimit 微優化誤報,清空 findings.json
AI / 計算版本號 (pull_request) Successful in 2s
AI / Code Review (pull_request) Failing after 31s

This commit is contained in:
Jeffery
2026-06-23 16:36:42 +08:00
parent 6398d4a193
commit 1ff74297ce
2 changed files with 7 additions and 18 deletions
+1 -18
View File
@@ -1,18 +1 @@
[
{
"level": "warning",
"role": "Maya",
"location": "app/usage.test.js:240",
"problem": "`formatUsageStatsLine` 測試案例中,僅驗證了單一平台的格式,缺失了當 `quota` 或 `rate` 資料缺失或包含無效數字(如 `NaN`)時的處理測試。",
"suggestion": "補充針對 `quota` 或 `rate` 傳入異常資料(如 `limit: NaN`)的測試,驗證 `formatUsageStatsLine` 是否能產生安全的預設文字,而非輸出 `NaN` 或破壞版面。",
"is_new": true
},
{
"level": "warning",
"role": "Rogue",
"location": "app/usage.js:146",
"problem": "在 `recordRateLimit` 中頻繁呼叫 `lowerCaseKeys`,這會對每個請求的 headers 進行複製與轉換,增加記憶體分配開銷。",
"suggestion": "建議直接存取 headers 時改用不區分大小寫的存取函式,避免複製整個物件。",
"is_new": true
}
]
[]