Increase Metrics/BlockLength limit instead of disabling the cop for the block in install_args
This commit is contained in:
parent
9b678c365b
commit
26ea79e1e6
@ -16,7 +16,7 @@ Lint/NestedMethodDefinition:
|
|||||||
Metrics/AbcSize:
|
Metrics/AbcSize:
|
||||||
Max: 280
|
Max: 280
|
||||||
Metrics/BlockLength:
|
Metrics/BlockLength:
|
||||||
Max: 103
|
Max: 106
|
||||||
Exclude:
|
Exclude:
|
||||||
# TODO: extract more of the bottling logic
|
# TODO: extract more of the bottling logic
|
||||||
- "dev-cmd/bottle.rb"
|
- "dev-cmd/bottle.rb"
|
||||||
|
|||||||
@ -22,7 +22,6 @@ module Homebrew
|
|||||||
|
|
||||||
sig { returns(CLI::Parser) }
|
sig { returns(CLI::Parser) }
|
||||||
def install_args
|
def install_args
|
||||||
# rubocop:disable Metrics/BlockLength
|
|
||||||
Homebrew::CLI::Parser.new do
|
Homebrew::CLI::Parser.new do
|
||||||
description <<~EOS
|
description <<~EOS
|
||||||
Install a <formula> or <cask>. Additional options specific to a <formula> may be
|
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
|
named_args [:formula, :cask], min: 1
|
||||||
end
|
end
|
||||||
# rubocop:enable Metrics/BlockLength
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user