Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
hardenedbsd-ports
Commits
f79b1de6
Commit
f79b1de6
authored
May 19, 2019
by
yuri
Browse files
New port: devel/dupl: Tool for code clone detection
parent
328ebcb0
Changes
4
Hide whitespace changes
Inline
Side-by-side
devel/Makefile
View file @
f79b1de6
...
...
@@ -493,6 +493,7 @@
SUBDIR
+=
dsymbol
SUBDIR
+=
dub
SUBDIR
+=
dulwich
SUBDIR
+=
dupl
SUBDIR
+=
duplo
SUBDIR
+=
dwarfdump
SUBDIR
+=
dxa65
...
...
devel/dupl/Makefile
0 → 100644
View file @
f79b1de6
# $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>
devel/dupl/distinfo
0 → 100644
View file @
f79b1de6
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
devel/dupl/pkg-descr
0 → 100644
View file @
f79b1de6
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment