5

我正在尝试从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

4

1 回答 1

0

它迟到了,但对于那些提到这个问题的人来说-report-type xml

于 2020-08-13T11:20:03.867 回答