From ab92eb366d623924afb29de70d5cdf5cc2754704 Mon Sep 17 00:00:00 2001 From: John O'Connor Date: Thu, 7 May 2020 15:03:16 +0100 Subject: [PATCH] (MAINT) Change Rubocop Screening Screen out redundant begin block rubocop compliance checks as these are causing vsphere.rb and pool_manager.rb to fail with differing ruby version checks. --- .rubocop.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index ec42bff..2d50ca0 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -51,6 +51,10 @@ Metrics/ModuleLength: Style/WordArray: Enabled: false +# RedundantBegin is causing lib/pool_manager & vsphere.rb to fail in Ruby 2.5+ +Style/RedundantBegin: + Enabled: false + # Either sytnax for regex is ok Style/RegexpLiteral: Enabled: false @@ -93,4 +97,4 @@ Naming/MethodParameterName: # Standard comparisons seem more readable Style/NumericPredicate: Enabled: true - EnforcedStyle: comparison \ No newline at end of file + EnforcedStyle: comparison