Commit f79b1de6 authored by yuri's avatar yuri
Browse files

New port: devel/dupl: Tool for code clone detection

parent 328ebcb0
......@@ -493,6 +493,7 @@
SUBDIR += dsymbol
SUBDIR += dub
SUBDIR += dulwich
SUBDIR += dupl
SUBDIR += duplo
SUBDIR += dwarfdump
SUBDIR += dxa65
......
# $FreeBSD$
PORTNAME= dupl
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.0-11
DISTVERSIONSUFFIX= -g28d787e
CATEGORIES= devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= Tool for code clone detection
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go
USE_GITHUB= yes
GH_ACCOUNT= mibk
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.mk>
TIMESTAMP = 1558228845
SHA256 (mibk-dupl-v1.0.0-11-g28d787e_GH0.tar.gz) = fb205c0b9fc93bcacc834b1e367d493bf187af098c05c2a60fb298520a7e036b
SIZE (mibk-dupl-v1.0.0-11-g28d787e_GH0.tar.gz) = 19213
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).
WWW: https://github.com/mibk/dupl
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment