.gitattributes 1.1 KB

1234567891011121314151617181920
  1. # 保持脚本文件 LF 换行,避免 Windows CRLF 导致 shebang 解析失败
  2. *.mjs text eol=lf
  3. *.sh text eol=lf
  4. # E2E PDF fixture 含规范 xref 尾空格,必须按二进制处理,避免 diff --check 误报。
  5. packages/desktop/test/e2e/fixtures/fs/**/*.pdf binary
  6. # 上游许可原文与生成的声明按字节保存,不能自动转换换行或裁剪空白。
  7. # 原文中的 License / ======= 是 Markdown 标题,不是合并冲突。
  8. THIRD-PARTY-NOTICES.md -text -whitespace conflict-marker-size=32 linguist-generated=true
  9. third-party/upstream/** -text -whitespace
  10. third-party/native-search/licenses/** -text -whitespace
  11. third-party/runtime/*.txt -text -whitespace
  12. docs/knip/docs/LICENSE -text -whitespace
  13. docs/knip/docs/licenses/** -text -whitespace
  14. third-party/inventory.json linguist-generated=true
  15. # Gen UI vendor 快照按字节保存:manifest 用 sha256 校验原始 LF 字节,
  16. # Windows autocrlf 检出时会转成 CRLF 导致 gen-ui-runtime-assets 构建校验必然失败。
  17. apps/zcode-cli/packages/visualize-plugin/skills/visualize/assets/vendor/** -text -whitespace