I am trying to create an html report from OCLint analysis. I installed xctool and generated a json file with this command:
xctool -project demoProject.xcodeproj -scheme demoProject -sdk iphonesimulator -reporter json-compilation-database:compile_commands.json build
Now I can start the analysis with this command:
oclint-json-compilation-database
but the report prints on standard output.
OCLint scripts have a report type parameter, so I can create an html report with this command:
oclint -report-type html -o report.html
but I cannot do this using the oclin-json-compilation database.
I read the help page ( http://docs.oclint.org/en/dev/manual/oclint-json-compilation-database.html ) and I found the parameter oclint_args, but I don’t understand how to use it, I tried
oclint-json-compilation-database -v oclint_args report-type html o report.html
but nothing happens
source
share