diff --git a/AGENTS.md b/AGENTS.md index 3191c72fc..12f5374b6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -145,7 +145,7 @@ Run all quality gates (see [Code quality](#code-quality) for the self-review che ```sh bun run check # oxlint + tsgo type-aware lint & typecheck bun run format # oxfmt -bun run test:dupes # jscpd < 3% +bun run test:dupes # jscpd — zero clones bun run test:unit # bun:test bun run test # Playwright E2E ``` @@ -279,7 +279,7 @@ Before submitting a PR, run the full quality gate and do a self-review: ```sh bun run check # oxlint + tsgo type-aware lint & typecheck — zero errors required bun run format # oxfmt with import sorting -bun run test:dupes # jscpd — must stay under 3% duplication +bun run test:dupes # jscpd — zero clones required bun run test:unit # bun:test bun run test # Playwright E2E ``` diff --git a/package.json b/package.json index 28ab4fac4..f8a0a07f8 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "figma:debug": "open -a Figma --args --remote-debugging-port=9222", "test:unit": "bun test ./tests/engine", "test:coverage": "bun test --coverage ./tests/engine", - "test:dupes": "jscpd packages/core/src packages/cli/src src --min-lines 5 --min-tokens 50 --format typescript", + "test:dupes": "jscpd packages/core/src packages/cli/src src --min-lines 5 --min-tokens 50 --format typescript --threshold 0", "open-pencil": "bun packages/cli/src/index.ts", "docs:dev": "bun --filter @open-pencil/docs dev", "docs:build": "bun --filter @open-pencil/docs build",