CI & Hooks
CI & Hooks
Integrate jscpd into your CI pipeline and git hooks.
jscpd can enforce duplication thresholds in CI pipelines and as a local pre-commit hook — catching copy/pasted code before it reaches the main branch.
- Use jscpd in CI — GitHub Actions, GitLab CI, and generic CI integration
- Use jscpd in pre-commit hooks — pre-commit framework, Husky, and manual git hooks