oclint: oclint-json-compilation-database returns "Skipping [Path] Command line not found."

3.9k Views Asked by At

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.

2

There are 2 best solutions below

0
On

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
1
On

Use latest dev 0.8 or 0.9

for me it corrected the bug.

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