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
Project Health Score
One 0-100 score with a grade for a codebase, from how much of it is duplicated, dead or concentrated in complex files, extensible with coverage, test and security metrics.
Use jscpd in CI
Run jscpd in GitHub Actions, GitLab CI, and other CI systems to enforce duplication thresholds.