Skip .claude/worktrees in jscpd scan

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWWLoUxxSPf1m8KUVo8
This commit is contained in:
Krzysztof Rudnicki 2026-11-18 21:32:33 +01:00
parent 79c8a7ad09
commit fb18a5f255

View File

@ -101,6 +101,9 @@ fi
# Extracting digital_wellbeing shrank the denominator enough
# for those virtualenv/tqdm clones to push the total to 2.09%
# and block a commit that added no duplication at all.
# .claude/worktrees/
# Full checkouts of this repo (gitignored, but jscpd walks the
# working tree): every file clones itself, 1.77% -> 50%.
# lib/tests/ a fixture IS repetitive by design; the 2% rule exists to
# stop duplicated production logic, not shared test setup.
# Needed headroom for the Phase 3 coverage campaign.
@ -110,7 +113,7 @@ jscpd_output=$("$JSCPD_BIN" \
--min-tokens 25 \
--threshold 2 \
--reporters "console" \
--ignore "**/node_modules/**,**/.git/**,**/misc/**,**/*.txt,**/.venv/**,**/.ci-mirror-venv/**,**/lib/tests/**,**/tests/**" \
--ignore "**/node_modules/**,**/.git/**,**/misc/**,**/*.txt,**/.venv/**,**/.ci-mirror-venv/**,**/lib/tests/**,**/tests/**,**/.claude/worktrees/**" \
. 2>&1) || jscpd_exit=$?
if [[ ${jscpd_exit:-0} -ne 0 ]]; then