branch: elpa/rubocop
commit 676cabeb8a646574a41a35282d0e120d2e0c20f5
Author: John Cinnamond <j...@panagile.com>
Commit: Bozhidar Batsov <bozhidar.bat...@gmail.com>

    Expand the project root path
    
    This is to fix rubocop on windows. Without the expansion rubocop tries
    to run "rubocop -format emacs ~/PROJ" which leads to rubocop exiting
    with the error "Is a directory @ rb_sysopen - C:/Users/USER/PROJ"
---
 rubocop.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rubocop.el b/rubocop.el
index a1d224d..2efed45 100644
--- a/rubocop.el
+++ b/rubocop.el
@@ -72,6 +72,7 @@ The current directory is assumed to be the project's root 
otherwise."
   (or (->> rubocop-project-root-files
         (--map (locate-dominating-file default-directory it))
         (-remove #'null)
+       (--map (expand-file-name it))
         (car))
       (error "You're not into a project")))
 

Reply via email to