From 6d122556f61694489359068d17a563c3da97197d Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 20 Jan 2017 13:39:59 +0000 Subject: [PATCH] Update rubocopfmt.el to comply with rubocopfmt 0.1.0.beta7 --- vendor/rubocopfmt.el | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/vendor/rubocopfmt.el b/vendor/rubocopfmt.el index fe99723..2559074 100644 --- a/vendor/rubocopfmt.el +++ b/vendor/rubocopfmt.el @@ -31,17 +31,13 @@ (let ((patchbuf (get-buffer-create "*Rubocopfmt patch*")) (coding-system-for-read 'utf-8) (coding-system-for-write 'utf-8) - (rubocopfmt-args (list - "-D" "rcs" "-F" (file-truename buffer-file-name)))) + (rubocopfmt-args + (list "--diff-format" "rcs" + "--src-dir" (file-name-directory (file-truename buffer-file-name))))) (unwind-protect (save-restriction (widen) - ;; Trailing whitespace on empty lines can cause incorrect correction - ;; behavior by Rubocop, so we clean up whitespace before handing - ;; things off to rubocopfmt. - (whitespace-cleanup) - (with-current-buffer patchbuf (erase-buffer)) (message "Calling rubocopfmt: %s %s" rubocopfmt-command rubocopfmt-args)