OCLint generate html report

Viewed 3937

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

2 Answers
Related