Skip to content

Instantly share code, notes, and snippets.

@gnomex
Created October 5, 2021 13:09
Show Gist options
  • Save gnomex/e34bf614ff62de6279053f43c32b5a3b to your computer and use it in GitHub Desktop.
Save gnomex/e34bf614ff62de6279053f43c32b5a3b to your computer and use it in GitHub Desktop.
Fix ruby-rubocop vscode
# FROM https://github.com/misogi/vscode-ruby-rubocop/issues/23
mkdir -p ~/.vscode/bin
cat <<'EOT' > ~/.vscode/bin/rubocop
#!/bin/bash
export PATH="$PATH:~/.rvm/bin"
source ~/.rvm/scripts/rvm
rvm use @default >/dev/null 2>&1
exec bundle exec rubocop $@
EOT
chmod +x ~/.vscode/bin/rubocop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment