Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ Create a `.drywallrc.json` in your project root to set defaults. Values correspo
"minLines": 5,
"ignore": ["**/node_modules/**", "**/dist/**", "**/*.generated.*"],
"respectGitignore": true,
"jscpdVersion": "4.0.8"
"jscpdVersion": "4.0.9"
}
```

The configuration options specific to DRYwall are:

- **`respectGitignore`** — `true` by default. Passes `--gitignore` to jscpd so that files excluded by `.gitignore` are automatically skipped (but: jscpd's implementation of this [is buggy](https://github.com/kucherenko/jscpd/pull/752) - some lines from your gitignore may not work as expected). Set to `false` to disable.
- **`jscpdVersion`** — Pin the jscpd version used via `npx`. Defaults to `4.0.8` if not set.
- **`respectGitignore`** — `true` by default. Passes `--gitignore` to jscpd so that files excluded by `.gitignore` are automatically skipped. Set to `false` to disable.
- **`jscpdVersion`** — Pin the jscpd version used via `npx`. Defaults to `4.0.9` if not set.
- **`maxDuplicates`** — Maximum number of duplicate pairs to return, ranked by impact. Defaults to `20`. (This needs to be restricted to avoid blowing past context limits right away in large codebases.)
- **`maxFragmentLength`** — Maximum character length of each code fragment before truncation. Defaults to `500`.

Expand Down
2 changes: 1 addition & 1 deletion servers/jscpd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readFile } from "node:fs/promises";
import { join } from "node:path";

export const VERSION = DRYWALL_VERSION;
export const DEFAULT_VERSION = "4.0.8";
export const DEFAULT_VERSION = "4.0.9";
export const REPORT_DIR = "/tmp/drywall-report";
export const REPORT_PATH = join(REPORT_DIR, "jscpd-report.json");
export const DRYWALL_KEYS = new Set([
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cd test/fixtures
# then invoke /drywall:scan in a Claude Code session

# Or run jscpd directly
npx [email protected].8 --reporters json --output /tmp/drywall-report --min-tokens 30 --min-lines 5 src/
npx [email protected].9 --reporters json --output /tmp/drywall-report --min-tokens 30 --min-lines 5 src/
cat /tmp/drywall-report/jscpd-report.json

# Test the agent
Expand Down
Loading