Fix rubocop warning by ignoring for install_args
This commit is contained in:
parent
bee3531090
commit
5b1724ef33
@ -16,7 +16,7 @@ Lint/NestedMethodDefinition:
|
|||||||
Metrics/AbcSize:
|
Metrics/AbcSize:
|
||||||
Max: 280
|
Max: 280
|
||||||
Metrics/BlockLength:
|
Metrics/BlockLength:
|
||||||
Max: 111
|
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"
|
||||||
|
|||||||
@ -20,6 +20,7 @@ module Homebrew
|
|||||||
|
|
||||||
module_function
|
module_function
|
||||||
|
|
||||||
|
# rubocop:disable Metrics/BlockLength
|
||||||
sig { returns(CLI::Parser) }
|
sig { returns(CLI::Parser) }
|
||||||
def install_args
|
def install_args
|
||||||
Homebrew::CLI::Parser.new do
|
Homebrew::CLI::Parser.new do
|
||||||
@ -141,6 +142,7 @@ module Homebrew
|
|||||||
named_args [:formula, :cask], min: 1
|
named_args [:formula, :cask], min: 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Metrics/BlockLength
|
||||||
|
|
||||||
def install
|
def install
|
||||||
args = install_args.parse
|
args = install_args.parse
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user