Using cpd in python

I am trying to run the GUI version of CPD on my python code base, but duplicate code is not returned even when I set the minimum block size to 1.

My code is not so good.

Has anyone ever managed to run CPD in a python project?

+7
source share
2 answers

Cannot help you with CPD. Try our CloneDR dual code detector. It has a front end to Python, and the site has sample results from clone detection operations. Quite a lot of CloneDR manage to find clones in each code, especially if it is "not so good."

+1
source

Python has been supported since PMD v5.3.0 (January 2015): https://pmd.imtqy.com/latest/pmd-python/index.html It can be run as follows:

. \ cpd.bat --minimum-tokens 75 - C: \ Path \ to \ your \ project \ - language python files

0
source

All Articles