Variable: ruby-rubocop-use-bundler

ruby-rubocop-use-bundler is a customizable variable defined in ruby-mode.el.gz.

Value

check

Documentation

Non-nil with allow ruby-flymake-rubocop to use bundle exec.

When the value is check, it will first see whether Gemfile exists in the same directory as the configuration file, and whether it mentions the gem "rubocop". When t, it is used unconditionally.

This variable was added, or its default value changed, in Emacs 30.1.

Probably introduced at or before Emacs version 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/ruby-mode.el.gz
(defcustom ruby-rubocop-use-bundler 'check
  "Non-nil with allow `ruby-flymake-rubocop' to use `bundle exec'.
When the value is `check', it will first see whether Gemfile exists in
the same directory as the configuration file, and whether it mentions
the gem \"rubocop\".  When t, it is used unconditionally."
  :type '(choice (const :tag "Always" t)
                 (const :tag "No" nil)
                 (const :tag "If rubocop is in Gemfile" check))
  :version "30.1"
  :safe 'booleanp)