mibk / Dupl
Licence: mit
a tool for code clone detection
Stars: ✭ 228
Labels
Projects that are alternatives of or similar to Dupl
Go Mygen
Quickly generate CURD and documentation for operating MYSQL.etc
Stars: ✭ 94 (-58.77%)
Mutual labels: golang-tools, tool
Syft
CLI tool and library for generating a Software Bill of Materials from container images and filesystems
Stars: ✭ 196 (-14.04%)
Mutual labels: tool
Angularjs Csti Scanner
Automated client-side template injection (sandbox escape/bypass) detection for AngularJS.
Stars: ✭ 214 (-6.14%)
Mutual labels: tool
Xmly Downloader Qt5
喜马拉雅FM专辑下载器. 支持VIP与付费专辑. 使用Go+Qt5编写(Not Qt Binding).
Stars: ✭ 214 (-6.14%)
Mutual labels: tool
Mojs Curve Editor
GUI for live easing/property curves editing
Stars: ✭ 196 (-14.04%)
Mutual labels: tool
Image Compress Without Backend
Pure frontend solution to compress images
Stars: ✭ 224 (-1.75%)
Mutual labels: tool
Lifetimetracker
Find retain cycles / memory leaks sooner.
Stars: ✭ 2,529 (+1009.21%)
Mutual labels: tool
Djangohunter
Tool designed to help identify incorrectly configured Django applications that are exposing sensitive information.
Stars: ✭ 212 (-7.02%)
Mutual labels: tool
Python Onedrive
Obsolete python/cli module for MS SkyDrive/OneDrive's old API, do not use for new projects
Stars: ✭ 202 (-11.4%)
Mutual labels: tool
Mojs Timeline Editor
GUI for interactive `html`/`custom points`/`timeline` editing while crafting your animations
Stars: ✭ 215 (-5.7%)
Mutual labels: tool
Webloyer
Webloyer is a web UI for managing Deployer deployments
Stars: ✭ 199 (-12.72%)
Mutual labels: tool
Fbsnapshotsviewer
A mac os application that shows the failing snapshot tests from FBSnapshotTestCase
Stars: ✭ 221 (-3.07%)
Mutual labels: tool
Csview
📠 A high performance csv viewer with cjk/emoji support.
Stars: ✭ 208 (-8.77%)
Mutual labels: tool
Php Validate
Lightweight and feature-rich PHP validation and filtering library. Support scene grouping, pre-filtering, array checking, custom validators, custom messages. 轻量且功能丰富的PHP验证、过滤库。支持场景分组,前置过滤,数组检查,自定义验证器,自定义消息。
Stars: ✭ 225 (-1.32%)
Mutual labels: tool
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).
Installation
go get -u github.com/mibk/dupl
Usage
Usage of dupl:
dupl [flags] [paths]
Paths:
If the given path is a file, dupl will use it regardless of
the file extension. If it is a directory it will recursively
search for *.go files in that directory.
If no path is given dupl will recursively search for *.go
files in the current directory.
Flags:
-files
read file names from stdin one at each line
-html
output the results as HTML, including duplicate code fragments
-plumbing
plumbing (easy-to-parse) output for consumption by scripts or tools
-t, -threshold size
minimum token sequence size as a clone (default 15)
-vendor
check files in vendor directory
-v, -verbose
explain what is being done
Examples:
dupl -t 100
Search clones in the current directory of size at least
100 tokens.
dupl $(find app/ -name '*_test.go')
Search for clones in tests in the app directory.
find app/ -name '*_test.go' |dupl -files
The same as above.
Example
The reduced output of this command with the following parameters for the Docker source code looks like this.
$ dupl -t 200 -html >docker.html
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].