From owner-svn-ports-head@freebsd.org Sun May 19 01:25:33 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 975CC159E2CA; Sun, 19 May 2019 01:25:33 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A7D670C6C; Sun, 19 May 2019 01:25:33 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 167DE27E06; Sun, 19 May 2019 01:25:33 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x4J1PWQt088791; Sun, 19 May 2019 01:25:32 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x4J1PWUx088788; Sun, 19 May 2019 01:25:32 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201905190125.x4J1PWUx088788@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 19 May 2019 01:25:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r502002 - in head/devel: . dupl X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/devel: . dupl X-SVN-Commit-Revision: 502002 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 3A7D670C6C X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.973,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 May 2019 01:25:33 -0000 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 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