Last active
December 3, 2018 18:56
-
-
Save josuesilva-hotmart/f52c026101e67af0707ef4794c4235c5 to your computer and use it in GitHub Desktop.
Run Swiftlint for the last modified swift file
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
swiftlint lint "${SRCROOT}/$( find . -type f -print0 | xargs -0 stat -f "%m %N" | sort -rn | head -3 | cut -f2- -d" " | grep swift | head -1 | awk '{print substr($1,3); }')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment