Last active
June 18, 2019 04:09
-
-
Save SahSantoshh/0f1093c9460869129d796f02797fff56 to your computer and use it in GitHub Desktop.
VS-code ruby setup, auto format on save
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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