Skip to content

Instantly share code, notes, and snippets.

@anujbiyani
Created November 11, 2019 23:08
Show Gist options
  • Save anujbiyani/6e69f4eb5ed1a5e3e6b220f3136f7735 to your computer and use it in GitHub Desktop.
Save anujbiyani/6e69f4eb5ed1a5e3e6b220f3136f7735 to your computer and use it in GitHub Desktop.
Ensure cops documentation has been committed
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