跳到正文
AGI Hunt· HermanGrondahl·· 14 小时前AI 评分38

gemini-cli 修复 Git 引号路径导致敏感词 lint 静默跳过

gemini-cli 修复:Git 引号路径导致敏感词 lint 静默跳过

AI 导读

gemini-cli 的一个 PR 修复了敏感关键词 lint 静默跳过含特殊字符路径文件的问题。修复采用 git diff -z,以 NUL 分隔输出,并抽出 diffNames(range) 统一 merge-base 主路径与 HEAD1..HEAD 回退路径。新测试覆盖空格、换行、双引号、反斜杠、Unicode 文件名及新增、修改、删除场景。

来源:AGI Hunt · agihunt.info