Increase Metrics/BlockLength limit instead of disabling the cop for the block in install_args

This commit is contained in:
Bob Lail 2022-01-11 08:34:51 -06:00
parent 9b678c365b
commit 26ea79e1e6
2 changed files with 1 additions and 3 deletions

View File

@ -16,7 +16,7 @@ Lint/NestedMethodDefinition:
Metrics/AbcSize:
Max: 280
Metrics/BlockLength:
Max: 103
Max: 106
Exclude:
# TODO: extract more of the bottling logic
- "dev-cmd/bottle.rb"

View File

@ -22,7 +22,6 @@ module Homebrew
sig { returns(CLI::Parser) }
def install_args
# rubocop:disable Metrics/BlockLength
Homebrew::CLI::Parser.new do
description <<~EOS
Install a <formula> or <cask>. Additional options specific to a <formula> may be
@ -136,7 +135,6 @@ module Homebrew
named_args [:formula, :cask], min: 1
end
# rubocop:enable Metrics/BlockLength
end
def install