Files
dacli/scripts/check_no_dacli_ts_refs.sh
sushub f403a7e80e import: ssw/dacli@eea0ebc (2026-08-12) 起点版本
本仓 2026-08-12 从 ssw main (192.168.1.18:13300/ssw/ssw-mvp) 的
dacli/ subpath 抽取,作为独立仓托管到 gitea:3000/ssw/dacli.git。

- 工作树为 ssw main dacli subpath 最新版 (110 commit, 08-12)
- 历史未带 ssw main 整体历史(避免大仓污染)
- 此为新仓基线 commit,未来以本仓历史为主
2026-08-12 15:58:06 +08:00

11 lines
499 B
Bash
Executable File

#!/bin/bash
# CI 关卡: 全 dacli/ + .claude/ 代码库内 `dacli-ts` 引用应为 0.
set -uo pipefail
WORKDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
HITS=$(grep -rn "dacli-ts" "$WORKDIR/dacli/" "$WORKDIR/.claude/" --include="*.md" --include="*.ts" --include="*.tsx" --include="*.sh" 2>/dev/null | grep -v "check_no_dacli_ts_refs" | wc -l)
if [ "$HITS" -gt 0 ]; then
echo "ERROR: $HITS dacli-ts references remain (should be 0)"
exit 1
fi
echo "OK: no dacli-ts references remain"