I'm trying to generate an html report from OCLint analysis. I've installed xctool and generate the json file with this command:
xctool -project demoProject.xcodeproj -scheme demoProject -sdk iphonesimulator -reporter json-compilation-database:compile_commands.json build
Now i can run analysis with this command:
oclint-json-compilation-database
but the report is printed on standard output.
The OCLint scrips has a report-type parameter, so i can create an html report with this command:
oclint -report-type html -o report.html
but i can't do this with oclin-json-compilation-database.
I read the help page (http://docs.oclint.org/en/dev/manual/oclint-json-compilation-database.html) and i found a oclint_args
parameter 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
i found! simply pass all the paramters double quoted
oclint-json-compilation-database -v oclint_args "-report-type html -o report.html"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With