我正在尝试从OCLint
分析中生成 html 报告。我已经使用以下命令安装xctool
并生成了json
文件:
xcodebuild -workspace SecondHand.xcworkspace -scheme SecondHand -sdk iphonesimulator build | tee xcodebuild.log | xcpretty -r json-compilation-database --output compile_commands.json
OCLint 脚本有一个报告类型参数,所以我可以使用以下命令创建一个 html 报告:
oclint-json-compilation-database -- -max-priority-1 10000 -max-priority-2 10000 -max-priority-3 10000 -rc LONG_LINE=150 -report-type pmd -o oclint.xml
但此命令出现错误:
localhost:SecondHand liyaowei$ oclint-json-compilation-database -- -max-priority-1 10000 -max-priority-2 10000 -max-priority-3 10000 -rc LONG_LINE=150 -report-type pmd -o oclint.xml
1 error generated.
1 error generated.
oclint:错误:无法打开报告输出文件:oclint: error: cannot open report output file /Users/liyaowei/Desktop/ffstpcommon_V1.6.0/SecondHand/oclint.xml