Compare commits

..

2 Commits

Author SHA1 Message Date
jiantw83 0b39e6a580 chore: add exclusions for Rex false positive on git.js token handling 2026-05-12 01:41:18 +00:00
AI Review Bot 199fdf059f chore: update ai-review findings [skip ci] 2026-05-12 01:40:37 +00:00
2 changed files with 15 additions and 15 deletions
+7
View File
@@ -0,0 +1,7 @@
[
{
"role": "Rex",
"location": "app/git.js",
"suggestion": "請避免將敏感資料(如 GITEA_TOKEN)直接寫入環境變數"
}
]
+8 -15
View File
@@ -1,11 +1,18 @@
[
{
"level": "critical",
"role": "Rex",
"role": "Leo",
"location": "app/config.js:7",
"suggestion": "請確保 EXCLUSIONS_PATH 的值不包含敏感資訊,並使用環境變數來管理敏感資料。",
"is_new": true
},
{
"level": "critical",
"role": "Maya",
"location": "app/git.js:1",
"suggestion": "缺少對 commitAndPush 函數的單元測試,應該為其添加測試以確保其正確性。",
"is_new": true
},
{
"level": "warning",
"role": "Zara",
@@ -20,13 +27,6 @@
"suggestion": "在讀取排除問題檔案時,建議加入對檔案內容的驗證,以防止不正確的格式導致潛在的錯誤或漏洞。",
"is_new": true
},
{
"level": "warning",
"role": "Aria",
"location": "README.md:4",
"suggestion": "建議將列表項目從數字改為符號,因為這樣可以更清晰地表示步驟,並避免數字錯位的問題。",
"is_new": true
},
{
"level": "info",
"role": "Leo",
@@ -62,13 +62,6 @@
"suggestion": "建議在常數命名中使用全大寫字母和底線分隔,以提高可讀性。",
"is_new": true
},
{
"level": "info",
"role": "Maya",
"location": "app/main.js:42",
"suggestion": "建議在每個步驟完成後的 log 中,增加更多上下文資訊,讓使用者更清楚每個步驟的結果。",
"is_new": true
},
{
"level": "info",
"role": "Maya",