Skip to content

Instantly share code, notes, and snippets.

@koss-lebedev
Last active May 25, 2018 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koss-lebedev/0885505e71c767caf822f6b7335d9735 to your computer and use it in GitHub Desktop.
Save koss-lebedev/0885505e71c767caf822f6b7335d9735 to your computer and use it in GitHub Desktop.
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