OCLint generates an empty compile_commands.json file

I successfully installed oclint on my mac and tried to run it. I follow the steps described here , but when I run the OCLint target it shows some error inside the UIKit and CoreFoundation frameworks.

An error is also displayed.

Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure

Then I tried like this to generate it xcodebuild.log correctly (I think), but when I execute oclint-xcodebuild, its creating a compile_commands.json file containing only an empty array.

Using

OCLint 0.9 dev for darwin / x86_64

Xcode Version 5.0 (5A1413)

OS X 10.8.5

UPDATE:

Finally, after cleaning and assembling compile_commands.json is generated correctly, but there are so many errors inside the framework. How can I build this without causing a frame error?

long line P3 Line with 108 characters exceeds limit of 100 

OCLint?

+4
1

, -rc = LONG_LINE = 300.

: oclint-json-compilation-database -v oclint_args "-report-type html -o report.html -rc = LONG_LINE = 120" open compile_commands.json .html

0

Source: https://habr.com/ru/post/1523856/


All Articles