- 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
Thank you this was helpful to get it working on travis
-max-priority-1=100000 -max-priority-2=100000 -max-priority-3=100000