feat(lang): Use rubocop-daemon to format ruby files on save

On my 2016 MacBook Pro correction times are around 200ms with the
daemon, compared to around 3-4 seconds without.

There might be some issues if bundler depends heavily on gems included
in the project, but we'll see how that goes.
This commit is contained in:
2020-05-18 19:56:29 +01:00
parent ce174c73e3
commit 25441f47d3
4 changed files with 144 additions and 3 deletions

View File

@@ -149,7 +149,9 @@
(ruby-mode . rubocopfmt-mode)
:custom
(rubocopfmt-show-errors 'echo))
(rubocopfmt-show-errors 'echo)
(rubocopfmt-rubocop-command
(expand-file-name "bin/rubocop-daemon-wrapper" siren-dir)))
(use-package ruby-compilation
:defer t)