chore: fix typos

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen 2024-12-28 15:52:04 -05:00
parent 6c7243957f
commit 79ed2c6e61
No known key found for this signature in database
GPG Key ID: 6577287BDCA70840
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.
# 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,
:desc, :homepage, :sha256, :url, :version
].freeze
@ -26,7 +26,7 @@ module RuboCop
cask_stanzas.each do |stanza|
# 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.
next unless stanzas_in_blocks.include?(stanza.stanza_name)

View File

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

View File

@ -83,7 +83,7 @@ RSpec.describe Cask::CaskLoader, :cask do
end
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(: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
at startup to make sure that startup times stay consistent.
Contants:
Constants:
#{UNDEFINED_CONSTANTS.join("\n")}
EOS
end

View File

@ -22,7 +22,7 @@ RSpec.describe Utils do
it { is_expected.to be true }
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" }
before do