11 lines
499 B
Bash
Executable File
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"
|