Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure with vscode #173

Closed
shaunakv1 opened this issue May 23, 2020 · 2 comments
Closed

How to configure with vscode #173

shaunakv1 opened this issue May 23, 2020 · 2 comments

Comments

@shaunakv1
Copy link

Is it possible to configure this to use with vscode?

@rafaelfranca
Copy link
Member

It should be if there is a plugin to run arbitrary commands. I'm not a vscode user myself, so I can't answer this question. I invite the community to figure it out and report back even adding na entry in the README with the answer. Thank you for the issue.

@manuelpuyol
Copy link

manuelpuyol commented Jul 12, 2021

Hi @rafaelfranca! I'm working on a plugin to run erblint in VSCode, but I'd need to make some changes to make this library compatible with what's supported there.

The main thing is a JSON output, making processing linting offenses more easily. Would you be up for reviewing that PR? I see there were some previous attempts at something similar, but they have been stale for a while.
A nice to have would be adding support to output the result of the autocorrection to stdout instead of directly rewriting the file and being able to read ERB files from stdin. Those changes would play nicely with VSCode native formatters (so we could autocorrect on save). I'll be happy to work on it after the JSON PR too.

Both options I mentioned above are supported by Rubocop, so I don't think it will be a big change adding them :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants