Created
November 11, 2019 23:08
-
-
Save anujbiyani/6e69f4eb5ed1a5e3e6b220f3136f7735 to your computer and use it in GitHub Desktop.
Ensure cops documentation has been committed
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
set -e | |
bundle exec rake generate_cops_documentation | |
if [ -n "$(git status --porcelain)" ]; then | |
echo "rake generate_cops_documentation resulted in a dirty tree; you probably need to generate and check in documentation"; | |
git status | |
git --no-pager diff | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment