有人可以請我解釋如何使用Oclint工具獲得Npath和Cyclomatic的複雜性嗎?我目前使用的命令使用Oclint的Npath和Cyclomatic複雜性
./oclint /home/kyriakos/Measurements/base64.c - -c
並獲得作爲輸出:
OCLint報告
摘要:TotalFiles = 1 FilesWithViolations = 1 P1 = 0 P2 = 0 P3 = 3
/home/kyriakos/Measurements/base64.c:18:5:與1個字符的短變量名P3變量名大於3
的閾值短/home/kyriakos/Measurements/base64.c:18:5:與1個字符的短變量名P3變量名大於3
/home/kyriakos/Measurements//base64.c:18的閾值短:5:用1個字符的短變量名P3變量名大於3
[OCLint(http://oclint.org)v0.8.1]