Created
September 13, 2017 04:28
-
-
Save bmorrall/e214420a4fdd8c3eea23c2288b7d7a40 to your computer and use it in GitHub Desktop.
Updates Rubocop to the latest version, and populates the .rubocop_todo.yml with all all the exceptions in the codebase.
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
#!/bin/bash | |
# Bumps Rubocop, removes all fixed Cops from the list of exceptions, and adds any cops that haven't been fixed | |
# Run after some code refactoring, or periodically whenever rubocop is updated | |
bundle update rubocop rubocop-rspec | |
echo "" > .rubocop_todo.yml | |
bundle exec rubocop --auto-gen-config --exclude-limit 50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment