Jscpd
jscpd
jscpd is a tool for detect copy/paste "design pattern" in programming source code.
Andrey Kucherenko's jscpd
is a smart tool that helps use to detect copy paste code!
It supports the below langauges:
- JavaScript
- Java
- CoffeeScript
- TypeScript
- C++
- PHP
- C#
- Go
- Python
- Ruby
- C
- Less
- CSS
- SCSS
- Mixed HTML
Install it: npm install -g jscpd
Usage:
1 2 3 4 5 6 7 |
|
If you have a .cpd.yml
config file in the pwd
jscpd command, you will check code for duplicates according the config.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
GIF FTW!