mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #16473 from p-linnane/fix-various-typos
various: fix miscellaneous typos
This commit is contained in:
commit
302e83e9aa
@ -19,7 +19,7 @@ module Homebrew
|
|||||||
|
|
||||||
If any version of each formula argument is installed and no other options
|
If any version of each formula argument is installed and no other options
|
||||||
are passed, this command displays their actual runtime dependencies (similar
|
are passed, this command displays their actual runtime dependencies (similar
|
||||||
to `brew linkage`), which may differ from the current versons' stated
|
to `brew linkage`), which may differ from the current versions' stated
|
||||||
dependencies if the installed versions are outdated.
|
dependencies if the installed versions are outdated.
|
||||||
|
|
||||||
*Note:* `--missing` and `--skip-recommended` have precedence over `--include-*`.
|
*Note:* `--missing` and `--skip-recommended` have precedence over `--include-*`.
|
||||||
|
@ -14,7 +14,7 @@ module RuboCop
|
|||||||
def on_cask_stanza_block(stanza_block)
|
def on_cask_stanza_block(stanza_block)
|
||||||
stanza_block.stanzas.select(&:caveats?).each do |stanza|
|
stanza_block.stanzas.select(&:caveats?).each do |stanza|
|
||||||
find_discontinued_method_call(stanza.stanza_node) do |node|
|
find_discontinued_method_call(stanza.stanza_node) do |node|
|
||||||
if caveats_constains_only_discontinued?(node.parent)
|
if caveats_contains_only_discontinued?(node.parent)
|
||||||
add_offense(node.parent, message: MESSAGE) do |corrector|
|
add_offense(node.parent, message: MESSAGE) do |corrector|
|
||||||
corrector.replace(node.parent.source_range,
|
corrector.replace(node.parent.source_range,
|
||||||
"deprecate! date: \"#{Date.today}\", because: :discontinued")
|
"deprecate! date: \"#{Date.today}\", because: :discontinued")
|
||||||
@ -26,7 +26,7 @@ module RuboCop
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def_node_matcher :caveats_constains_only_discontinued?, <<~EOS
|
def_node_matcher :caveats_contains_only_discontinued?, <<~EOS
|
||||||
(block
|
(block
|
||||||
(send nil? :caveats)
|
(send nil? :caveats)
|
||||||
(args)
|
(args)
|
||||||
|
@ -10,7 +10,7 @@ module RuboCop
|
|||||||
block: T.nilable(T.proc.params(node: RuboCop::AST::SendNode).void),
|
block: T.nilable(T.proc.params(node: RuboCop::AST::SendNode).void),
|
||||||
).returns(T::Boolean)
|
).returns(T::Boolean)
|
||||||
}
|
}
|
||||||
def caveats_constains_only_discontinued?(base_node, &block); end
|
def caveats_contains_only_discontinued?(base_node, &block); end
|
||||||
|
|
||||||
sig {
|
sig {
|
||||||
params(
|
params(
|
||||||
|
@ -570,7 +570,7 @@ class Tap
|
|||||||
sig { returns(T::Hash[String, Pathname]) }
|
sig { returns(T::Hash[String, Pathname]) }
|
||||||
def formula_files_by_name
|
def formula_files_by_name
|
||||||
formula_files.each_with_object({}) do |file, hash|
|
formula_files.each_with_object({}) do |file, hash|
|
||||||
# If there's more than one file with the same basename: use the longer one to prioritise more specifc results.
|
# If there's more than one file with the same basename: use the longer one to prioritise more specific results.
|
||||||
basename = file.basename(".rb").to_s
|
basename = file.basename(".rb").to_s
|
||||||
existing_file = hash[basename]
|
existing_file = hash[basename]
|
||||||
hash[basename] = file if existing_file.nil? || existing_file.to_s.length < file.to_s.length
|
hash[basename] = file if existing_file.nil? || existing_file.to_s.length < file.to_s.length
|
||||||
@ -600,7 +600,7 @@ class Tap
|
|||||||
sig { returns(T::Hash[String, Pathname]) }
|
sig { returns(T::Hash[String, Pathname]) }
|
||||||
def cask_files_by_name
|
def cask_files_by_name
|
||||||
cask_files.each_with_object({}) do |file, hash|
|
cask_files.each_with_object({}) do |file, hash|
|
||||||
# If there's more than one file with the same basename: use the longer one to prioritise more specifc results.
|
# If there's more than one file with the same basename: use the longer one to prioritise more specific results.
|
||||||
basename = file.basename(".rb").to_s
|
basename = file.basename(".rb").to_s
|
||||||
existing_file = hash[basename]
|
existing_file = hash[basename]
|
||||||
hash[basename] = file if existing_file.nil? || existing_file.to_s.length < file.to_s.length
|
hash[basename] = file if existing_file.nil? || existing_file.to_s.length < file.to_s.length
|
||||||
|
@ -143,7 +143,7 @@ shows all required and recommended dependencies.
|
|||||||
|
|
||||||
If any version of each formula argument is installed and no other options
|
If any version of each formula argument is installed and no other options
|
||||||
are passed, this command displays their actual runtime dependencies (similar
|
are passed, this command displays their actual runtime dependencies (similar
|
||||||
to `brew linkage`), which may differ from the current versons' stated
|
to `brew linkage`), which may differ from the current versions' stated
|
||||||
dependencies if the installed versions are outdated.
|
dependencies if the installed versions are outdated.
|
||||||
|
|
||||||
*Note:* `--missing` and `--skip-recommended` have precedence over `--include-*`.
|
*Note:* `--missing` and `--skip-recommended` have precedence over `--include-*`.
|
||||||
|
@ -158,7 +158,7 @@ Show Homebrew and system configuration info useful for debugging\. If you file a
|
|||||||
Show dependencies for \fIformula\fR\. When given multiple formula arguments, show the intersection of dependencies for each formula\. By default, \fBdeps\fR shows all required and recommended dependencies\.
|
Show dependencies for \fIformula\fR\. When given multiple formula arguments, show the intersection of dependencies for each formula\. By default, \fBdeps\fR shows all required and recommended dependencies\.
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
If any version of each formula argument is installed and no other options are passed, this command displays their actual runtime dependencies (similar to \fBbrew linkage\fR), which may differ from the current versons\' stated dependencies if the installed versions are outdated\.
|
If any version of each formula argument is installed and no other options are passed, this command displays their actual runtime dependencies (similar to \fBbrew linkage\fR), which may differ from the current versions\' stated dependencies if the installed versions are outdated\.
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
\fINote:\fR \fB\-\-missing\fR and \fB\-\-skip\-recommended\fR have precedence over \fB\-\-include\-*\fR\.
|
\fINote:\fR \fB\-\-missing\fR and \fB\-\-skip\-recommended\fR have precedence over \fB\-\-include\-*\fR\.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user