gpt4 book ai didi

python - 在 python 上使用 cpd

转载 作者:太空狗 更新时间:2023-10-29 21:55:43 30 4
gpt4 key购买 nike

我试图在我的 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/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com