summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-04 12:27:21 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-04 19:25:37 +0100
commitd53a14d9967891f2009ada602e7790ab23997ff0 (patch)
treeef15fcf14c28b981952fc5f221cbe55c5157f94c /lib
parent5c456b21162daa4cd7d4bef1b001a6899acaaeae (diff)
downloadbundler-d53a14d9967891f2009ada602e7790ab23997ff0.tar.gz
Disable `Style/GuardClause` copfix_offenses_for_more_cops
Sometimes rubocop misunderstand semantics, and forces you to write code that feels worse. I prefer to disable it.
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/plugin/installer.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/bundler/plugin/installer.rb b/lib/bundler/plugin/installer.rb
index 713d679f12..a2ec0c1d65 100644
--- a/lib/bundler/plugin/installer.rb
+++ b/lib/bundler/plugin/installer.rb
@@ -43,16 +43,11 @@ module Bundler
private
- # Rubocop misunderstands the semantics of this method, assuming an `else` code block
- # that doesn't exist. See https://github.com/bbatsov/rubocop/issues/5702.
- #
- # rubocop:disable Style/GuardClause
def check_sources_consistency!(options)
if options.key?(:git) && options.key?(:local_git)
raise InvalidOption, "Remote and local plugin git sources can't be both specified"
end
end
- # rubocop:enable Style/GuardClause
def install_git(names, version, options)
uri = options.delete(:git)