Skip to content

Instantly share code, notes, and snippets.

@Baza207
Created August 29, 2017 11:56
Show Gist options
  • Save Baza207/588423b58ca30bcf3745e8b806da9785 to your computer and use it in GitHub Desktop.
Save Baza207/588423b58ca30bcf3745e8b806da9785 to your computer and use it in GitHub Desktop.
Default code to add to a Run Scrip Build Phase in Xcode for SwiftLint.
if [ "$USER" != "xcodeserver" ]; then
if which swiftlint >/dev/null; then
swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment