我试图在我的 python 代码库上运行 CPD 的 GUI 版本,但即使我将最小块大小设置为 1,也没有返回重复代码。
我的代码不是那么好。
有没有人在 python 项目上成功运行 CPD?
最佳答案
自 PMD v5.3.0(2015 年 1 月)起原生支持 Python:https://pmd.github.io/latest/pmd-python/index.html 它可以像这样运行:
.\cpd.bat --minimum-tokens 75 --files C:\Path\to\your\project\ --language python
关于python - 在 python 上使用 cpd,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6697809/