Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何让 clonedigger 忽略文件?
我正在运行这个命令:
clonedigger --cpd-output src/apps/api/ -o ${basedir}/clonedigger.xml
但我需要它来忽略 tests.py 文件。
clonedigger --ignore-dir=IGNORE_DIRS .
或者,使用clonedigger --file-list并传入一组您确实想要处理的文件。如有必要,您可以使用 UNIX 工具(如find耦合grep -v)过滤掉名称包含test.
clonedigger --file-list
find
grep -v
test