开发者

using cpd on python

开发者 https://www.devze.com 2023-03-20 14:47 出处:网络
I am trying t开发者_运维问答o run the GUI version of CPD on my python codebase, but no duplicate code is returned even when i set the min chunk size to 1.

I am trying t开发者_运维问答o run the GUI version of CPD on my python codebase, but no duplicate code is returned even when i set the min chunk size to 1.

My code isnt that good.

has anyone ever had any success running CPD on a python project?


Python is natively supported since PMD v5.3.0 (January 2015) : https://pmd.github.io/latest/pmd-python/index.html It can be run like this :

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


Can't help you with CPD. Consider trying our CloneDR duplicate code detector. It has a Python front end, and there are sample results from clone detection runs at the site. Pretty much CloneDR manages to find clones in everybody's code, especially if it "isn't that good".

0

精彩评论

暂无评论...
验证码 换一张
取 消