This release adds 2 notable features for engineering teams evaluating rollout.
Published 1mo
Developer Productivity
✓ No known CVEs patched
✓ No known CVEs patched in this version
Topics
ai
clones-detection
code-quality
coding-agents
copy-paste
copy-paste-detection
+9 more
cpd
detector
dry
duplicates
duplications
mcp
quality
skill
skills
Summary
AI summaryUpdates Published Packages, Refactoring, and Bug Fixes across a mixed release.
Full changelog
cpd (Rust) v5.0.10
Bug Fixes
- Emit scan-root-relative paths in all reporters when
absolute: false(or the default). Previously,jscpd /abs/pathfrom a different CWD left absolute paths in SARIF/JSON/XML/HTML/CSV/Markdown/console output, and Windows/macOS path canonicalization could leave\\?\or./prefixes. Paths are now normalized against the canonicalized scan root (with CWD fallback) and stripped of any leading./or.\\component. Fixes #827 - Fix
--skip-localto match jscpd v4 TypeScript semantics: it now filters clones where both fragments are under the same scan root, instead of only skipping clones in the same parent directory
Refactoring
- DRY duplication in reporters: extract shared helpers (
print_clone_header,print_clone_locations,print_snippet,write_report_file, report statistics, test fixtures, etc.) intocpd-reporter/src/shared.rs. Console, console-full, CSV, JSON, HTML, Markdown, silent, XML, and SARIF reporters now reuse the same implementation, reducing the monorepo's reported duplication ratio from 5.0% to 0.56% and fixing a latent--absolutepath relativization bug in the same pass - Move blame enrichment from
gitoxidetogit blame --porcelain; capture elapsed time after blame so timing includes blame work - Resolve
needless_borrowclippy warnings in CSV and Markdown reporters
Documentation
- Add Nix and Homebrew install instructions to Rust READMEs. #818
- Update project homepage URLs to
https://jscpd.devin allCargo.tomland npmpackage.jsonfiles, add curl install method to READMEs, clean up outdated badges - Remove defunct Universal Analytics tracking pixels from all READMEs
Published Packages
[email protected]on crates.io[email protected]on crates.io[email protected]on crates.io[email protected]on crates.io[email protected]on crates.io[email protected]on npm[email protected]on npm[email protected]on npm[email protected]on npm[email protected]on npm[email protected]on npm[email protected]on npm[email protected]on npm
Install
npm install -g cpd
# or
npm install -g jscpd
# or
cargo install jscpd
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About kucherenko/jscpd](https:
All releases →Beta — feedback welcome: [email protected]