[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/rubocop 32f8b08 51/64: Use nonbundled rubocop if rubocop-p
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/rubocop 32f8b08 51/64: Use nonbundled rubocop if rubocop-prefer-system-executable is set |
Date: |
Wed, 11 Aug 2021 10:08:03 -0400 (EDT) |
branch: elpa/rubocop
commit 32f8b082c9983990a82f9524740878a80c28d5cc
Author: Daniel Luna <dcl@chime.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Use nonbundled rubocop if rubocop-prefer-system-executable is set
---
rubocop.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/rubocop.el b/rubocop.el
index 6c83e28..26913f4 100644
--- a/rubocop.el
+++ b/rubocop.el
@@ -68,6 +68,11 @@
:group 'rubocop
:type 'string)
+(defcustom rubocop-prefer-system-executable nil
+ "Runs rubocop with the system executable even if inside a bundled project."
+ :group 'rubocop
+ :type 'boolean)
+
(defun rubocop-local-file-name (file-name)
"Retrieve local filename if FILE-NAME is opened via TRAMP."
(cond ((tramp-tramp-file-p file-name)
@@ -111,7 +116,7 @@ When NO-ERROR is non-nil returns nil instead of raise an
error."
"Build the full command to be run based on COMMAND and PATH.
The command will be prefixed with `bundle exec` if RuboCop is bundled."
(concat
- (if (rubocop-bundled-p) "bundle exec " "")
+ (if (and (not rubocop-prefer-system-executable) (rubocop-bundled-p))
"bundle exec " "")
command
(rubocop-build-requires)
" "
- [nongnu] elpa/rubocop 38d982a 56/64: Add a note about alternative packages, (continued)
- [nongnu] elpa/rubocop 38d982a 56/64: Add a note about alternative packages, ELPA Syncer, 2021/08/11
- [nongnu] elpa/rubocop d44737a 43/64: Fix a reference to RuboCop, ELPA Syncer, 2021/08/11
- [nongnu] elpa/rubocop 980bedb 49/64: Release 0.5, ELPA Syncer, 2021/08/11
- [nongnu] elpa/rubocop 8e9ec29 06/64: Update for RuboCop 0.9 (fixes #1), ELPA Syncer, 2021/08/11
- [nongnu] elpa/rubocop dcde702 29/64: Improve the README a bit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/rubocop 0ab1329 50/64: Update the README, ELPA Syncer, 2021/08/11
- [nongnu] elpa/rubocop 8b2c1f5 57/64: Remove mention of Prelude, ELPA Syncer, 2021/08/11
- [nongnu] elpa/rubocop 0b4e5ce 61/64: Add an option to execute rubocop in a chroot, ELPA Syncer, 2021/08/11
- [nongnu] elpa/rubocop 9b23b05 22/64: Make rubocop-emacs TRAMP-aware, ELPA Syncer, 2021/08/11
- [nongnu] elpa/rubocop 40a1d5a 19/64: Merge pull request #6 from bhfailor/master, ELPA Syncer, 2021/08/11
- [nongnu] elpa/rubocop 32f8b08 51/64: Use nonbundled rubocop if rubocop-prefer-system-executable is set,
ELPA Syncer <=