Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>ruby-linterNew to Visual Studio Code? Get it now.

ruby-linter

Cody Hoover

|
96,180 installs
| (1) | Free
An extension to use built in ruby linting in vscode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

README

"ruby-linter" is a wrapper for ruby -wc.

It expects ruby to be installed and already added to the path. If it is installed but cannot be found, add the path to your preferences as seen below.

{
	"ruby.linter.executablePath": "PathToExecutable"
}

Configuration:

There are various options that can be configured by making changes to your user or workspace preferences.

Lint onType or onSave or not at all

By default the linter will lint on the fly but can be changed to linting as you save. Note that linting on save is most useful when auto-save is on. Use the setting below if to change the behavior with the values onType, onSave, and off.

{
	"ruby.linter.run": "onType"
}

Acknowledgements

The extension architecture is based off of the PHPValidationProvider from the built-in php extension.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft