Created
November 8, 2016 10:14
-
-
Save ManWithBear/2adc2b9609ce39471d70ead81201be25 to your computer and use it in GitHub Desktop.
OCLint script for xcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f ~/.bash_profile ]; then | |
source ~/.bash_profile | |
fi | |
hash oclint &> /dev/null | |
if [ $? -eq 1 ]; then | |
echo >&2 "oclint not found, analyzing stopped" | |
exit 1 | |
fi | |
cd ${SRCROOT} | |
xcodebuild -target <Put here target> -configuration <Debug|Release> -scheme <Put here scheme> -dry-run | xcpretty -r json-compilation-database | |
oclint-json-compilation-database -- -report-type xcode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's weird, I already using it on Xcode 8