Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

dupl

> 编程语言
Open source

a tool for code clone detection

368 stars0 likes2 views
WebsiteGitHub

About

a tool for code clone detection

dupl

dupl is a tool written in Go for finding code clones. It can find clones only in the Go source files. The method uses a suffix tree for serialized ASTs. It ignores values of AST nodes. It just operates with their types (e.g. if a == 13 {} and if x == 100 {} are considered the same provided it exceeds the minimal token sequence size).

Due to the used method dupl can report so called "false positives" on the output. These are the ones we do not consider clones (whether they are too small, or the values of the matched tokens are completely different).

Installation

bash
go install github.com/mibk/dupl@latest

Usage

…

Example

The reduced output of this command with the following parameters for the Docker source code looks like this.

bash
$ dupl -t 200 -html >docker.html

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gocode-clonesgogolanggolang-tools

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言