Skip to content

Instantly share code, notes, and snippets.

@SahSantoshh
Last active June 18, 2019 04:09
Show Gist options
  • Save SahSantoshh/0f1093c9460869129d796f02797fff56 to your computer and use it in GitHub Desktop.
Save SahSantoshh/0f1093c9460869129d796f02797fff56 to your computer and use it in GitHub Desktop.
VS-code ruby setup, auto format on save
{
"editor.tabSize": 2,
// Time (ms) to wait after keypress before running enabled linters. Ensures
// linters are only run when typing has finished and not for every keypress
"ruby.lintDebounceTime": 500,
// Basic settings: turn linter(s) on
"ruby.lint": {
"reek": true,
"rubocop": true,
"ruby": true, //Runs ruby -wc
"fasterer": true,
"debride": true,
"ruby-lint": true,
},
"ruby.codeCompletion": "rcodetools",
"ruby.intellisense": "rubyLocate",
"ruby.locate": {
"include": "**/*.rb",
"exclude": "{**/@(test|spec|tmp|.*),**/@(test|spec|tmp|.*)/**,**/*_spec.rb}"
},
"[ruby]": {
"editor.formatOnSave": true
},
"ruby.format": "rubocop",
"editor.formatOnSaveTimeout": 1500,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment