Skip to content

Instantly share code, notes, and snippets.

@kaskichandrakant
Created June 20, 2018 07:37
Show Gist options
  • Save kaskichandrakant/d187a4f5784590beb31dc6e8aeabfa3f to your computer and use it in GitHub Desktop.
Save kaskichandrakant/d187a4f5784590beb31dc6e8aeabfa3f to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "Running SwiftLint"
cd Sto
FILE_NAME=$(basename $PWD)
echo "running swiftlint in $FILE_NAME"
Swiftlint --strict
if [ $? != 0 ] ; then
echo "swiftlint failed make required changes to your code"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment