Last active
May 25, 2018 12:20
-
-
Save koss-lebedev/0885505e71c767caf822f6b7335d9735 to your computer and use it in GitHub Desktop.
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
FILES_WITHOUT_FLOW="$(grep -r --include=\*.js -L "@flow" src)" | |
FILES_COUNT=$(echo $FILES_WITHOUT_FLOW | wc -w) | |
if [ $FILES_COUNT -ne 0 ] | |
then | |
echo "Following files are missing @flow annotation:" | |
echo $FILES_WITHOUT_FLOW | tr " " "\n" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment