3

After (seemingly) successfully generating compile_commands.json with oclint-xcodebuild, oclint-json-compilation-database fails to correctly create a pmd-style report.

The command looks like this:

oclint-json-compilation-database -e Pods -v -- -report-type=pmd -o=oclint.xml -debug

It returns:

Skipping [Path to Directory with compile_commands.json]. Command line not found.

I'm using oclint 0.7.

ff10
  • 3,046
  • 1
  • 32
  • 55

2 Answers2

2

Use latest dev 0.8 or 0.9

for me it corrected the bug.

Seen in Sonar Plugin for Objective C, Prerequisites, point 4.

malaba
  • 599
  • 5
  • 22
  • I can't check this right now but will come back and marked as solved if this will have worked. – ff10 Apr 08 '14 at 14:45
2

Your command needs to be changed. No "=" required. It should look like this:

oclint-json-compilation-database -e Pods -v -- -report-type pmd -o oclint.xml -debug
Russ Van Bert
  • 752
  • 11
  • 22