diff --git a/linux_configuration/.githooks/pre-commit b/linux_configuration/.githooks/pre-commit index f5643400..9746350f 100755 --- a/linux_configuration/.githooks/pre-commit +++ b/linux_configuration/.githooks/pre-commit @@ -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