From a4b47a4cac79b791e4257598882c23766601136b Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Mon, 24 Aug 2026 16:48:01 +0200 Subject: [PATCH] Fix new `Style/DirectiveScope` offense --- Rakefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index d5a9efb..a382214 100644 --- a/Rakefile +++ b/Rakefile @@ -79,7 +79,7 @@ def perform_git_commit end # Returns an array e.g.: ['open', 'http://example.com'] -# rubocop:disable Metrics/CyclomaticComplexity +# rubocop:disable-next Metrics/CyclomaticComplexity def browse_cmd(url) require 'rbconfig' browser = ENV.fetch('BROWSER') { RbConfig::CONFIG['host_os'].include?('darwin') && 'open' } || @@ -89,7 +89,6 @@ def browse_cmd(url) abort('ERROR: no web browser detected') unless browser Array(browser) << url end -# rubocop:enable Metrics/CyclomaticComplexity # which('ruby') #=> /usr/bin/ruby def which(cmd)