- Add a new Target of kind Aggregate, name it OCLint
- Under Builde Phases, add a new Run Script Phase
- Paste the script
- Select target OCLint
- Build the target (press ⌘+B)
- Wait for the script to run
- Warnings will appear in the Issue Navigator (press ⌘+4)
- Rules can be ignored by adding the parameter
-disable-rule=<RuleName>
to theoclint-json-compilation-database
command - A comprehensive list of rules can be found at OCLint documentation
This script was not working.I was getting error : LLVM Error - Couldn't read JSON compilation Database error.
But now i have resolved by replacing with other script.
Was something missing with documentation ?