gpt4 book ai didi

xcode - OCLint 生成 html 报告

转载 作者:行者123 更新时间:2023-12-03 18:26:14 24 4
gpt4 key购买 nike

我正在尝试从 OCLint 分析生成 html 报告。我已经安装了 xctool 并使用以下命令生成了 json 文件:

xctool -project demoProject.xcodeproj -scheme demoProject -sdk iphonesimulator -reporter json-compilation-database:compile_commands.json  build

现在我可以使用以下命令运行分析:
oclint-json-compilation-database

但报告打印在标准输出上。

OCLint 脚本有一个报告类型参数,所以我可以用这个命令创建一个 html 报告:
oclint -report-type html -o report.html 

但我不能用 oclin-json-compilation-database 做到这一点。

我阅读了帮助页面( http://docs.oclint.org/en/dev/manual/oclint-json-compilation-database.html ),我发现了一个 oclint_args参数,但我不明白如何使用它。我试过
oclint-json-compilation-database -v oclint_args report-type html o report.html

但什么也没发生

最佳答案

我发现!只需传递所有参数双引号

oclint-json-compilation-database -v oclint_args "-report-type html -o report.html"

关于xcode - OCLint 生成 html 报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20702432/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com