Move Metrics/Blocklength disable to rubocop.yml

This commit is contained in:
Lukas Oberhuber 2022-08-02 08:39:02 -07:00
parent 07e299760a
commit d35f2e76a7
2 changed files with 1 additions and 2 deletions

View File

@ -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:

View File

@ -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