-
Notifications
You must be signed in to change notification settings - Fork 2
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
Integrate dprint-plugin-exec to use rubocop as a simple formatter #317
Conversation
"exec": { | ||
"associations": ["**/*.{rb,gemspec,rake}", "Rakefile", "Gemfile", "Steepfile"], | ||
"rubocop": "bundle exec rubocop --autocorrect --stdin {{file_path}} --stderr", | ||
"rubocop.associations": "**/**" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of no supported multiple globs yet https://github.com/dprint/dprint-plugin-exec/blob/94ed0fe3fac6a631c5e3e00538f29c30770a0738/src/configuration.rs#L165-L173
@@ -3,11 +3,16 @@ | |||
}, | |||
"markdown": { | |||
}, | |||
"exec": { | |||
"associations": ["**/*.{rb,gemspec,rake}", "Rakefile", "Gemfile", "Steepfile"], | |||
"rubocop": "bundle exec rubocop --autocorrect --stdin {{file_path}} --stderr", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using servermode makde faster, However closing vscode does not kill it. So it should be done in another PR or commit.
Update #314 with https://github.com/dprint/dprint-plugin-exec
Much more simpler 🎉