Merge pull request #15937 from MikeMcQuaid/cleanup_todo
Cleanup various TODOs
This commit is contained in:
commit
4ad5321d03
@ -164,7 +164,6 @@ Naming/HeredocDelimiterNaming:
|
|||||||
Naming/InclusiveLanguage:
|
Naming/InclusiveLanguage:
|
||||||
CheckStrings: true
|
CheckStrings: true
|
||||||
FlaggedTerms:
|
FlaggedTerms:
|
||||||
# TODO: If possible, make this stricter.
|
|
||||||
slave:
|
slave:
|
||||||
AllowedRegex:
|
AllowedRegex:
|
||||||
- "gitslave" # Used in formula `gitslave`
|
- "gitslave" # Used in formula `gitslave`
|
||||||
@ -392,12 +391,12 @@ Style/NumericLiterals:
|
|||||||
Exclude:
|
Exclude:
|
||||||
- "**/Brewfile"
|
- "**/Brewfile"
|
||||||
|
|
||||||
# TODO: These are pre-existing violations and should be corrected
|
|
||||||
# to define methods so that call sites can be type-checked.
|
|
||||||
Style/OpenStructUse:
|
Style/OpenStructUse:
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Homebrew/cli/args.rb"
|
|
||||||
- "Taps/**/*.rb"
|
- "Taps/**/*.rb"
|
||||||
|
# TODO: This is a pre-existing violation and should be corrected
|
||||||
|
# to define methods so that call sites can be type-checked.
|
||||||
|
- "Homebrew/cli/args.rb"
|
||||||
|
|
||||||
# Rescuing `StandardError` is an understood default.
|
# Rescuing `StandardError` is an understood default.
|
||||||
Style/RescueStandardError:
|
Style/RescueStandardError:
|
||||||
|
|||||||
@ -116,7 +116,6 @@ module Homebrew
|
|||||||
begin
|
begin
|
||||||
formula.clear_cache if args.force?
|
formula.clear_cache if args.force?
|
||||||
|
|
||||||
# TODO: Deprecate `--bottle-tag`.
|
|
||||||
bottle_tag = if (bottle_tag = args.bottle_tag&.to_sym)
|
bottle_tag = if (bottle_tag = args.bottle_tag&.to_sym)
|
||||||
Utils::Bottles::Tag.from_symbol(bottle_tag)
|
Utils::Bottles::Tag.from_symbol(bottle_tag)
|
||||||
else
|
else
|
||||||
|
|||||||
@ -74,14 +74,22 @@ class AbstractDownloadStrategy
|
|||||||
|
|
||||||
# Disable any output during downloading.
|
# Disable any output during downloading.
|
||||||
#
|
#
|
||||||
# TODO: Deprecate once we have an explicitly documented alternative.
|
|
||||||
#
|
|
||||||
# @api public
|
# @api public
|
||||||
sig { void }
|
sig { void }
|
||||||
def shutup!
|
def quiet!
|
||||||
@quiet = true
|
@quiet = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Disable any output during downloading.
|
||||||
|
#
|
||||||
|
# @deprecated
|
||||||
|
# @api private
|
||||||
|
sig { void }
|
||||||
|
def shutup!
|
||||||
|
# odeprecated "AbstractDownloadStrategy#shutup!", "AbstractDownloadStrategy#quiet!"
|
||||||
|
quiet!
|
||||||
|
end
|
||||||
|
|
||||||
def quiet?
|
def quiet?
|
||||||
Context.current.quiet? || @quiet
|
Context.current.quiet? || @quiet
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user