Merge pull request #19014 from chenrui333/fix-typo

chore: fix typos
This commit is contained in:
Issy Long 2024-12-28 21:13:45 +00:00 committed by GitHub
commit 9626df0553
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ module RuboCop
# These stanzas can be overridden by `on_*` blocks, so take them into account. # These stanzas can be overridden by `on_*` blocks, so take them into account.
# TODO: Update this list if new stanzas are added to `Cask::DSL` that call `set_unique_stanza`. # TODO: Update this list if new stanzas are added to `Cask::DSL` that call `set_unique_stanza`.
OVERRIDEABLE_METHODS = [ OVERRIDABLE_METHODS = [
:appcast, :arch, :auto_updates, :conflicts_with, :container, :appcast, :arch, :auto_updates, :conflicts_with, :container,
:desc, :homepage, :sha256, :url, :version :desc, :homepage, :sha256, :url, :version
].freeze ].freeze
@ -26,7 +26,7 @@ module RuboCop
cask_stanzas.each do |stanza| cask_stanzas.each do |stanza|
# Skip if the stanza is not allowed to be overridden. # Skip if the stanza is not allowed to be overridden.
next unless OVERRIDEABLE_METHODS.include?(stanza.stanza_name) next unless OVERRIDABLE_METHODS.include?(stanza.stanza_name)
# Skip if the stanza outside of a block is not also in an `on_*` block. # Skip if the stanza outside of a block is not also in an `on_*` block.
next unless stanzas_in_blocks.include?(stanza.stanza_name) next unless stanzas_in_blocks.include?(stanza.stanza_name)

View File

@ -14,7 +14,7 @@ module RuboCop
# # bad # # bad
# def caveats # def caveats
# <<~EOS # <<~EOS
# Use `setuid` to allow running the exeutable by non-root users. # Use `setuid` to allow running the executable by non-root users.
# EOS # EOS
# end # end
# #

View File

@ -83,7 +83,7 @@ RSpec.describe Cask::CaskLoader, :cask do
end end
context "to a cask in an other tap" do context "to a cask in an other tap" do
# Can't use local-caffeine. It is a fixture in the :core_cask_tap and would take precendence over :new_tap. # Can't use local-caffeine. It is a fixture in the :core_cask_tap and would take precedence over :new_tap.
let(:token) { "some-cask" } let(:token) { "some-cask" }
let(:old_tap) { Tap.fetch("homebrew", "foo") } let(:old_tap) { Tap.fetch("homebrew", "foo") }

View File

@ -65,7 +65,7 @@ parser = Homebrew::CLI::Parser.new(Homebrew::Cmd::VerifyUndefined) do
Verifies that the following constants have not been defined Verifies that the following constants have not been defined
at startup to make sure that startup times stay consistent. at startup to make sure that startup times stay consistent.
Contants: Constants:
#{UNDEFINED_CONSTANTS.join("\n")} #{UNDEFINED_CONSTANTS.join("\n")}
EOS EOS
end end

View File

@ -22,7 +22,7 @@ RSpec.describe Utils do
it { is_expected.to be true } it { is_expected.to be true }
end end
describe "succeeds on newer mismatched major/minor required Ruby version and configurated environment" do describe "succeeds on newer mismatched major/minor required Ruby version and configured environment" do
let(:required_ruby_version) { "2.0.0" } let(:required_ruby_version) { "2.0.0" }
before do before do