Last active
March 11, 2020 14:18
-
-
Save billypchan/df6abb998ef36c55e35a1a35bd1bfada to your computer and use it in GitHub Desktop.
git: compare with delevop branch, then run swiftLint only on changed swift files
This file contains 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
## put this file under /usr/local/bin | |
git diff develop --name-only | while read filename; do | |
if [[ $filename == *.swift ]] | |
then | |
swiftlint autocorrect --path "$filename"; | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment