From 7a76cb85ab839882da5b2248fb45b70c3579333b Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Thu, 22 Aug 2019 13:20:00 +0200 Subject: [PATCH] L #-: Disable SpaceAroundOperators rubocop layout Also fix line too long offense --- share/linters/.rubocop.yml | 3 +++ src/vmm_mad/remotes/vcenter/migrate | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/share/linters/.rubocop.yml b/share/linters/.rubocop.yml index 74d776b4fa..3d2f856459 100644 --- a/share/linters/.rubocop.yml +++ b/share/linters/.rubocop.yml @@ -630,6 +630,9 @@ Layout/EmptyLineAfterGuardClause: Layout/AlignHash: Enabled: false +Layout/SpaceAroundOperators: + Enabled: false + ### ####### diff --git a/src/vmm_mad/remotes/vcenter/migrate b/src/vmm_mad/remotes/vcenter/migrate index abf5ff9007..dee11831e7 100755 --- a/src/vmm_mad/remotes/vcenter/migrate +++ b/src/vmm_mad/remotes/vcenter/migrate @@ -20,10 +20,10 @@ ONE_LOCATION = ENV['ONE_LOCATION'] unless defined?(ONE_LOCATION) if !ONE_LOCATION RUBY_LIB_LOCATION ||= '/usr/lib/one/ruby' - GEMS_LOCATION = '/usr/share/one/gems' unless defined?(GEMS_LOCATION) + GEMS_LOCATION = '/usr/share/one/gems' unless defined?(GEMS_LOCATION) else RUBY_LIB_LOCATION ||= ONE_LOCATION + '/lib/ruby' - GEMS_LOCATION = ONE_LOCATION + '/share/gems' unless defined?(GEMS_LOCATION) + GEMS_LOCATION = ONE_LOCATION + '/share/gems' unless defined?(GEMS_LOCATION) end if File.directory?(GEMS_LOCATION)