Skip to content

Instantly share code, notes, and snippets.

@WToa
WToa / rubocop_speed_up.md
Last active March 22, 2021 00:25
Speed up Rubocop onSave in VS code with rubocop-daemon
gem install rubocop-daemon
curl https://raw.githubusercontent.com/fohte/rubocop-daemon/master/bin/rubocop-daemon-wrapper -o /tmp/rubocop-daemon-wrapper
sudo mkdir -p /usr/local/bin/rubocop-daemon-wrapper
sudo mv /tmp/rubocop-daemon-wrapper /usr/local/bin/rubocop-daemon-wrapper/rubocop
sudo chmod +x /usr/local/bin/rubocop-daemon-wrapper/rubocop

Add this to top of ~/.zshrc export PATH="/usr/local/bin/rubocop-daemon-wrapper:$PATH"