代码重复检测:
cpd --minimum-tokens 100 --files g:\source\python\ --language python >log.txt
输出类似:
=====================================================================
Found a 381 line (1849 tokens) duplication in the following files:
Starting at line 24 of xxxxalysis\policy_analysis.py
Starting at line 30 of xxxxxis\policy_analysis_cluster_1.py
logger = None
logger_running = None
COUNT = 2
SRC_IP = 0
SRC_PORT = 0
DEST_IP = 0
DEST_PORT = 0
PROTOCOL = 0
COMMAND = 0
COMMAND_ARGUMENT = 0
FATHER_PID