From d35f2e76a77f53cf2c6f75a1beb36b92e54d595b Mon Sep 17 00:00:00 2001 From: Lukas Oberhuber Date: Tue, 2 Aug 2022 08:39:02 -0700 Subject: [PATCH] Move Metrics/Blocklength disable to rubocop.yml --- Library/Homebrew/.rubocop.yml | 1 + Library/Homebrew/cmd/install.rb | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml index 07b613ecb3..b5ba4ec572 100644 --- a/Library/Homebrew/.rubocop.yml +++ b/Library/Homebrew/.rubocop.yml @@ -21,6 +21,7 @@ Metrics/BlockLength: # TODO: extract more of the bottling logic - "dev-cmd/bottle.rb" - "test/**/*" + - "cmd/install.rb" Metrics/BlockNesting: Max: 5 Metrics/ClassLength: diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index 18f8034488..6844ef124b 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -20,7 +20,6 @@ module Homebrew module_function - # rubocop:disable Metrics/BlockLength sig { returns(CLI::Parser) } def install_args Homebrew::CLI::Parser.new do @@ -142,7 +141,6 @@ module Homebrew named_args [:formula, :cask], min: 1 end end - # rubocop:enable Metrics/BlockLength def install args = install_args.parse