Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OCLint generate html report

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

like image 531
TheObjCGuy Avatar asked Dec 03 '22 20:12

TheObjCGuy


1 Answers

i found! simply pass all the paramters double quoted

oclint-json-compilation-database -v oclint_args "-report-type html -o report.html"
like image 82
TheObjCGuy Avatar answered Feb 20 '23 04:02

TheObjCGuy