Skip to content

Commit

Permalink
Merge pull request #19014 from chenrui333/fix-typo
Browse files Browse the repository at this point in the history
chore: fix typos
  • Loading branch information
issyl0 authored Dec 28, 2024
2 parents aeed9ef + 79ed2c6 commit 9626df0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/rubocops/cask/no_overrides.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class NoOverrides < Base

# 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
Expand All @@ -26,7 +26,7 @@ def on_cask(cask_block)

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)

Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/rubocops/caveats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module FormulaAudit
# # 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
#
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/test/cask/cask_loader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
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") }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class VerifyUndefined < AbstractCommand
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
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
Expand Down

0 comments on commit 9626df0

Please sign in to comment.