установить Ruby, и рубиново-rubocop расширение в моей Visual Studio кодекса, но это предупреждение показывается в моем редакторе:Значение не принятое значение. Допустимые значения: [ "rubocop"] (737, 20)
Value is not an accepted value. Valid values: ["rubocop"] (737, 20)
Когда я нажимаю на предупреждения перенаправить на settings.json (/)
, в частности "ruby.format": "",
.
// ruby language settings
// Defines where the Ruby extension will look to find Modules, Classes and methods.
"ruby.locate": {
"exclude": "{**/@(test|spec|tmp|.*),**/@(test|spec|tmp|.*)/**,**/*_spec.rb}",
"include": "**/*.rb"
},
// Path to the Ruby interpreter. Set this to an absolute path to select from multiple installed Ruby versions.
"ruby.interpreter.commandPath": "ruby",
// Path to the rct-complete command. Set this to an absolute path to select from multiple installed Ruby versions.
"ruby.rctComplete.commandPath": "rct-complete",
// Select the type of formatter to use. If 'rubocop' is selected, the ruby.lint.rubocop options will be passed to the formatter.
"ruby.format": "",
// Set individual ruby linters to use
"ruby.lint": {},
В моей .vscode/settings.json Я стараюсь "ruby.format": "rubocop",
и "ruby.format": ["rubocop"],
но предупреждение продолжать показ.