Head-to-head · Code Clone Detection Tools
PMD vs @kongyo2/similarity-ts
PMD leads on 0 checks, @kongyo2/similarity-ts on 0, and 4 are even. Who comes out ahead on the 4 yes/no, price and count checks where we have data for both products. The editor score weighs everything else too.
Our verdict
- Highest scorePMD · 9.0/10
- Free planboth
- Most features@kongyo2/similarity-ts · 2 of 3
PMD scores higher on our rubric for code clone detection tools: 9.0 against 8.6 out of 10; our editors rank them #3 and #6.
PMD is the better fit for teams wanting clones plus broad static analysis. @kongyo2/similarity-ts is the better fit for typeScript repositories needing CI clone gates.
- PMD fits best
Teams wanting clones plus broad static analysis
- @kongyo2/similarity-ts fits best
TypeScript repositories needing CI clone gates
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Side by side
| Feature | PMD 9.0/10 Visit ↗ | @kongyo2/similarity-ts 8.6/10 Visit ↗ |
|---|---|---|
| At a glance | ||
| Editor score | 9.0 | 8.6 |
| Ranking | #3 in Code Clone Detection Tools | #6 in Code Clone Detection Tools |
| Best for | Teams wanting clones plus broad static analysis | TypeScript repositories needing CI clone gates |
| Pricing model | Free | Free |
| Starting price | Free plan | Free plan |
| Free plan | ✓ | ✓ |
| Free trial | — | — |
| Deployment | Self-hosted, Desktop | Self-hosted |
| Support | Docs | Docs |
| Built for | Solo, Small business, Mid-market, Enterprise | Solo, Small business |
| Features PMD 0/3 · @kongyo2/similarity-ts 2/3 | ||
| CI integration | Not checked yet | ✓ (best) |
| IDE integration | Not checked yet | — |
| Self-hosted option | Not checked yet | ✓ (best) |
| Specs | ||
| Clone detection method | Not checked yet | Ast |
| Scan scope | Not checked yet | Repository |
| Supported languages | Not checked yet | Not checked yet |
| Our review | ||
| Pros |
|
|
| Cons |
|
|
| Our verdict | PMD is an open-source, multilanguage static code analyzer for developers and development teams that need more than duplicate-code detection. Its CPD component identifies duplicated code, while the wider analysis engine covers issues such… Read the review → |
@kongyo2/similarity-ts is an open-source TypeScript code-similarity CLI and library for finding duplicate or structurally similar code. It is aimed at teams maintaining TypeScript repositories, especially those that want clone detection as… Read the review → |
Strengths and trade-offs
PMD — where it wins
- CPD detects duplicated code alongside 400+ built-in analysis rules
- Supports 16 languages with Java and XPath custom rules
- Fits Maven, IDE, CI, and major build-tool workflows
Where it doesn't
- Primarily suits teams comfortable with self-hosted developer tooling
- Custom rules require Java or XPath knowledge
- IDE support centers on Eclipse, IntelliJ IDEA, and Visual Studio Code
@kongyo2/similarity-ts — where it wins
- AST scoring compares functions, types, and classes structurally
- Thresholds, exclusions, and scan-scope rules support tailored checks
- JSON output and CI failure gating fit automated quality workflows
Where it doesn't
- Focused on TypeScript and related file extensions
- No IDE integration is specified
- Self-hosted CLI workflows require local setup and maintenance
- PMD9.0/10 · Free plan
A strong open-source choice for teams pairing clone detection with broad static analysis.
Visit PMDFull verdict → - @kongyo2/similarity-ts8.6/10 · Free plan
A focused, self-hosted CLI for TypeScript clone checks and CI gates.
Visit kongyo2Full verdict →
More comparisons
- jscpd vs PMD
- jscpd vs @kongyo2/similarity-ts
- art-dupl vs PMD
- art-dupl vs @kongyo2/similarity-ts
- PMD vs NiCad
- PMD vs Amimica
- PMD vs QuickDup
- PMD vs semdup
All code clone detection tools comparisons → · Full ranking →
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Last updated · How we research and update

