emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rubocop 676cabe 36/64: Expand the project root path


From: ELPA Syncer
Subject: [nongnu] elpa/rubocop 676cabe 36/64: Expand the project root path
Date: Wed, 11 Aug 2021 10:08:00 -0400 (EDT)

branch: elpa/rubocop
commit 676cabeb8a646574a41a35282d0e120d2e0c20f5
Author: John Cinnamond <jc@panagile.com>
Commit: Bozhidar Batsov <bozhidar.batsov@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

[Prev in Thread] Current Thread [Next in Thread]