Skip to content

Instantly share code, notes, and snippets.

@bmorrall
Created September 13, 2017 04:28
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 bmorrall/e214420a4fdd8c3eea23c2288b7d7a40 to your computer and use it in GitHub Desktop.
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.
#!/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