Created
April 5, 2023 16:46
-
-
Save aortiz49/2c1cf89af1e74f80204efb4aea360703 to your computer and use it in GitHub Desktop.
VSCode Ruby 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