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
# add this to .git/hooks directory without any file extension like so 'pre-commit'. | |
# run chmod +x pre-commit to give it the proper permission. | |
# this script runs swiftlint from Pods. But it's recommended to also | |
# install swiftlint with brew to quickly run 'swiftlint autocorrect' in the project root directory. | |
#!/bin/bash | |
# Finding SwiftLint | |
LINT=./Pods/SwiftLint/swiftlint | |
if [[ -e "${LINT}" ]]; then |