devel/dupl 1.0.0.11_24 DragonFly
Tool for code clone detection
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel
- Package size
- 728.4 KiB, 2058.7 KiB installed
Description
dupl is a tool written in Go for finding code clones. So far it can find clones only in the Go source files. The method uses 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).
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/dupl | 1.0.0.11_24 |
| FreeBSD | devel/dupl | 1.1.0_8 |
| HardenedBSD | devel/dupl | 1.1.0_6 |
| GhostBSD | devel/dupl | 1.1.0_6 |
Install
Binary package:
pkg install dupl
From DPorts:
cd /usr/dports/devel/dupl && make install clean
Dependencies
No port depends on this one.