Skip to content

Instantly share code, notes, and snippets.

@itochan
Last active February 13, 2018 07:40
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 itochan/7e7e43b544a956f87ad7e61f6276dc86 to your computer and use it in GitHub Desktop.
Save itochan/7e7e43b544a956f87ad7e61f6276dc86 to your computer and use it in GitHub Desktop.
rubocop |& grep ' has the wrong namespace - should be ' | \
sed 's/\(.*\)\: \(.*\)\/\(.*\) has the wrong namespace - should be \(.*\)/s#\2\/\3#\4\/\3# \1/' | \
xargs -L1 sed -i '' -e
rubocop |& grep ' cop has been \(renamed \(and moved \)\?to \|removed. Please use \)' | \
sed 's/The `\(.*\)\` .* `\(.*\)`\( instead\)\{0,1\}\./s#\1#\2#/' | \
xargs -I {} -L1 sed -i '' -e {} .rubocop.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment