OCLint generates html report

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

+4
source share
2 answers

!

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

:

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

:

oclint-json-compilation-database -e exclude_this_folder* -e exclude_that_folder* -- \
-report-type html -o report.html -max-priority-2=15 -max-priority-3=30 \
-rc CYCLOMATIC_COMPLEXITY=4 -rc LONG_CLASS=200 -rc LONG_LINE=120 \ 
-rc LONG_METHOD=10 -rc NPATH_COMPLEXITY=20 -rc NESTED_BLOCK_DEPTH=3 \
-rc TOO_MANY_PARAMETERS=5 -rc LONG_VARIABLE_NAME=30
+8

All Articles