Skip to content

Instantly share code, notes, and snippets.

@yeradis
Created April 29, 2017 07:04
Show Gist options
  • Save yeradis/883ecb62d4562f8927a3eab2c7186522 to your computer and use it in GitHub Desktop.
Save yeradis/883ecb62d4562f8927a3eab2c7186522 to your computer and use it in GitHub Desktop.
OCLint + XCPretty + XCode integration as and Aggregate target
source ~/.bash_profile
cd ${SRCROOT}
xcodebuild clean
xcodebuild | tee xcodebuild.log | xcpretty -r json-compilation-database -o compile_commands.json
maxPriority=15000
oclint-json-compilation-database -- -report-type xcode -max-priority-1=$maxPriority -max-priority-2=$maxPriority -max-priority-3=$maxPriority
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment