vscode-rubocop icon indicating copy to clipboard operation
vscode-rubocop copied to clipboard

Add option for supported language

Open ksss opened this issue 1 year ago • 2 comments

There are several RuboCop extensions that target non-Ruby files.

  • https://github.com/rubocop/rubocop-md
  • https://github.com/r7kamura/rubocop-erb
  • https://github.com/r7kamura/rubocop-slim

However, since VSCode is not informed that this extension should activate for files like markdown or erb, diagnostics and auto-corrections cannot be displayed in VSCode.

This change allows you to add languages that can be used in VSCode settings, enabling the extension to be used for these languages.

Settings screen shot

image

Example for erb

image

ksss avatar May 31 '24 02:05 ksss

I also has released https://github.com/ksss/rubocop-on-rbs . It needs language support for rbs. I would appreciate it if you could consider this change.

ksss avatar Jun 06 '24 12:06 ksss

@koic This change is still useful to me today and I would love to share it with other users. Would you mind sharing your current thoughts on this change?

ksss avatar Sep 30 '24 01:09 ksss

@koic It's very useful

Weddin avatar Mar 27 '25 12:03 Weddin

For users who are not familiar with how to use it, it may be unclear which parameter values should be set in which situations. Can you add some explanations or guidance to the README to help clarify this?

koic avatar Apr 01 '25 08:04 koic

@koic Thanks for the response! I've updated the README.

ksss avatar Apr 02 '25 06:04 ksss

Can you squash your commits into one?

koic avatar Apr 04 '25 05:04 koic

Squashed!

ksss avatar Apr 04 '25 06:04 ksss

vscode-rubocop 0.8.0 has been released and is available in the Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=rubocop.vscode-rubocop

Thank you!

koic avatar Apr 04 '25 07:04 koic