Skip to contentjscpdjscpdv5
DocsGuidesTrendingBlog
    • What jscpd finds
    • Installation
    • Quickstart
    • Configuration basics
    • Use jscpd in CI
    • Pre-commit hooks
    • Fail only on new duplication
    • Monorepos
    • Cross-format detection
    • Agents
    • Editors
    • Duplication over git history
    • Dashboard and health score
    • Dead code
    • Comparing two codebases
    • Semantic clones
    • Similar functions
    • Boundaries
    • Types of code clones
    • How detection works
    • The health score
    • CLI options
    • The config file
    • Exit codes
      • Reporters
      • HTML reporter
      • JSON reporter
      • Badge reporter
      • SARIF reporter
      • CodeClimate reporter
      • OpenMetrics reporter
    • Supported formats
    • GitHub Action
    • Rust crates
    • Changelog
    • Migrating from v4 to v5
    • jscpd v4 (TypeScript)
      • Benchmarks
      • Detection Speed
      • Multi-Format Detection
      • AI Token Efficiency
      • Embedding Models
    • Research
    • Articles

Concepts

1 view
How jscpd reads code and what its numbers mean.

These pages explain the ideas behind the tool. The guides tell you which flag to use; these tell you why it works and where it stops.

  • Types of code clones: exact, renamed, near-miss and semantic clones, and which of them jscpd finds.
  • How detection works: tokenization per language, normalization and matching.
  • The health score: how duplication, dead code and complexity fold into one 0-100 number.
Edit this pageorReport an issue
  
DocsChangelogTrendingBlogSupportGitHubX
jscpdjscpd
Copyright © 2013-2026 Andrey Kucherenko