1 مستودع
Pre-commit hooks that run copy-paste detection on staged files and block commits exceeding a threshold.
Distinct from Pre-commit Hooks: Distinct from Pre-commit Hooks: specifically runs duplication detection on staged files, not general quality checks.
Explore 1 awesome GitHub repository matching development tools & productivity · Duplication Detection Hooks. Refine with filters or upvote what's useful.
jscpd is a code duplication detector that scans source code across 223 languages to find identical or near-identical copy-pasted blocks using a rolling hash algorithm. It is built with a Rust core for high performance, exposed through a Node.js API and CLI, and can be run as a standalone binary with no runtime dependencies. The tool detects duplicates in embedded languages within Vue, Svelte, Astro, and Markdown files by tokenizing each language block separately, and it supports extensionless scripts via shebang detection. The project distinguishes itself through its integration capabilities
Runs a copy-paste detector on staged files before each commit, blocking the commit if duplication exceeds a threshold.