Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2019 01:25:32 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r502002 - in head/devel: . dupl
Message-ID:  <201905190125.x4J1PWUx088788@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun May 19 01:25:32 2019
New Revision: 502002
URL: https://svnweb.freebsd.org/changeset/ports/502002

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

Added:
  head/devel/dupl/
  head/devel/dupl/Makefile   (contents, props changed)
  head/devel/dupl/distinfo   (contents, props changed)
  head/devel/dupl/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun May 19 00:52:15 2019	(r502001)
+++ head/devel/Makefile	Sun May 19 01:25:32 2019	(r502002)
@@ -493,6 +493,7 @@
     SUBDIR += dsymbol
     SUBDIR += dub
     SUBDIR += dulwich
+    SUBDIR += dupl
     SUBDIR += duplo
     SUBDIR += dwarfdump
     SUBDIR += dxa65

Added: head/devel/dupl/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/dupl/Makefile	Sun May 19 01:25:32 2019	(r502002)
@@ -0,0 +1,23 @@
+# $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>

Added: head/devel/dupl/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/dupl/distinfo	Sun May 19 01:25:32 2019	(r502002)
@@ -0,0 +1,3 @@
+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

Added: head/devel/dupl/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/dupl/pkg-descr	Sun May 19 01:25:32 2019	(r502002)
@@ -0,0 +1,11 @@
+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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905190125.x4J1PWUx088788>