Skip to content

skyl/jscpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copy/paste detector for JavaScript and CoffeeScript code

jscpd is a tool for detect copy/past "design pattern" in JavaScript and CoffeeScript code.

Installation

npm install jscpd -g

Usage

jscpd -p /path/to/js/code -o /path/to/xml/output

Options:

  • -l, --min-lines min size of duplication in code lines (Default is 5)
  • -t, --min-tokens mim size of duplication in code tokens (Default is 70)
  • -p, --path path to JavaScript code (Default is current working dir)
  • -c, --coffee BOOLEAN is CoffeeScript code
  • -i, --ignore directory to ignore
  • -o, --output path to report xml file, report generated in PMD format
  • --verbose show full info about copies
  • -v, --version Display the current version
  • -h, --help Display help and usage details

About

Copy/paste detector for programming source code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 93.5%
  • XSLT 4.8%
  • JavaScript 1.1%
  • Shell 0.6%