Copy/paste detector for programming source code, supports 150+ formats.
Copy/paste is a common technical debt on a lot of projects. The jscpd gives the ability to find duplicated blocks implemented on more than 150 programming languages and digital formats of documents. The jscpd tool implements Rabin-Karp algorithm for searching duplications.
or
or
More information about cli here.
For integration copy/paste detection to your application you can use programming API:
jscpd Promise API
jscpd async/await API
detectClones API
detectClones with persist store
In case of deep customisation of detection process you can build your own tool with @jscpd/core, @jscpd/finder and @jscpd/tokenizer.
- Fork the repo kucherenko/jscpd
- Clone forked version (git clone https://github.com/{your-id}/jscpd)
- Install dependencies (pnpm install)
- Run the project in dev mode: pnpm dev (watch changes and rebuild the packages)
- Add your changes
- Add tests and check it with pnpm test
- Build your project pnpm build
- Create PR
- GitHub Super Linter is combination of multiple linters to install as a GitHub Action
- Code-Inspector is a code analysis and technical debt management service.
- Mega-Linter is a 100% open-source linters aggregator for CI (GitHub Action & other CI tools) or to run locally
- Codacy automatically analyzes your source code and identifies issues as you go, helping you develop software more efficiently with fewer issues down the line.
- Natural is a general natural language facility for nodejs. It offers a broad range of functionalities for natural language processing.
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
MIT © Andrey Kucherenko
.png)
![Why the PSF Withdrew a $1.5M US Government Grant Proposal [video]](https://www.youtube.com/img/desktop/supported_browsers/firefox.png)

