FreeBSD Ports

devel/dupl 1.1.0_8

Tool for code clone detection

Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d81b7ba3c3
License
MIT
Categories
devel
Package size
901.8 KiB, 2722.8 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).

Install

As a binary package — by origin, or by package name:

pkg install devel/dupl
pkg install dupl

From the ports tree:

cd /usr/ports/devel/dupl/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	dupl>0:devel/dupl

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.1.0_71.1.0_7-1.0.0.11_291.1.0_7
FreeBSD:14:quarterly1.1.0_71.1.0_7n/a1.0.0.11_271.1.0_7
FreeBSD:15:latest1.1.0_71.1.0_7n/a-1.0.0.11_29
FreeBSD:15:quarterly1.1.0_71.1.0_7n/an/an/a
FreeBSD:16:latest1.1.0_61.1.0_7n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

All build dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
go
Service scripts
none

Files

distinfo 1
FileSizeSHA256
mibk-dupl-v1.1.0_GH0.tar.gz1959509c4977baaaf4b3743ced69cbf9dc9f256fe69e47a3885d9e29cdab53eca8b1c

Commit history 6

DateCommitCreditsLog message
d81b7ba3c3 Dag-Erling Smørgrav various: Bump Go ports for Go 1.26.10 / 1.27.3
031fc6bfbf Dag-Erling Smørgrav various: Bump Go ports
dd0905142a Adam Weinberger many: Bump go ports for 1.26.8 and 1.27.1
4867821cd6 Dag-Erling Smørgrav various: Bump go ports for go-1.25.14 / 1.26.7
6d39dcf04e Dag-Erling Smørgrav various: Bump go ports for go-1.25.13 / 1.26.6

The latest 5 of 6 in the history this site was built from.