Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>docker-ruby-rubocopNew to Visual Studio Code? Get it now.
docker-ruby-rubocop

docker-ruby-rubocop

s035

|
208 installs
| (0) | Free
Lint Rubycode use your local eubocop and rubocop on docker
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Docker-Ruby-Rubocop

Liniting as per your convenience

Docker-Ruby-Rubocop is a VSCode etension that lets you lint ruby files using rubocop on system and rubocop running inside docker containers.

Features


  • Execute Rubocop inside docker or in the host machine
  • Get Lint output for files with large number of lines

A Note of Gratitude


This extension is created by forking a good plugin name ruby-rubocop create by the man misogi. Misogi have have provided the ruby commuity with a good linting plugin for years. His code heped me a lot while building this plugin. So, a big thanks to the friend I have never met 🤝🏽.

Installation and Setup


  1. Go to Vscode Extensions Tab
  2. Search for Docker-Ruby-Rubocop
  3. Click on the extension made by s035 and install.

Open Extension's Setting and follow the below steps for respective modes.

Setup for using rubocop on docker (Docker Mode)

  • check the "useDocker" checkbox.
  • check the "disableEmptyFileCop" checkbox (if you enable this, you will receive an Lint/EmptyfileCop offence when linitng the files which are not present inside the docker container.)
  • If you have an rubocop config file inside the docker, please specify the rubocop config file path inside the docker container.

Setup for using rubocop on system (Normal Mode)

  • Uncheck the useDocker checkbox.
  • Uncheck the disableEmptyFileCop.
  • Provide the path where rubocop is available in the Execution Path Input Box.
  • Provide the path for rubocop config file on system, if rubocop config file is available.

If you want rubocop to be ran on every save, check the execute on save checkbox.

Issues


If you face any issues or problemswhen using the extension, please feel free to create an issue.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft