diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb index d85303b492..2ce2c742fe 100644 --- a/Library/Homebrew/dependency.rb +++ b/Library/Homebrew/dependency.rb @@ -98,7 +98,7 @@ class Dependency # `[dependent, dep]` pairs to allow callers to apply arbitrary filters to # the list. # The default filter, which is applied when a block is not given, omits - # optionals and recommendeds based on what the dependent has asked for + # optionals and recommends based on what the dependent has asked for def expand(dependent, deps = dependent.deps, cache_key: nil, &block) # Keep track dependencies to avoid infinite cyclic dependency recursion. @expand_stack ||= [] diff --git a/Library/Homebrew/extend/os/linux/install.rb b/Library/Homebrew/extend/os/linux/install.rb index cc8a6b4715..bf23f152a0 100644 --- a/Library/Homebrew/extend/os/linux/install.rb +++ b/Library/Homebrew/extend/os/linux/install.rb @@ -18,7 +18,7 @@ module Homebrew ].freeze private_constant :DYNAMIC_LINKERS - # We link GCC runtime libraries that are not specificaly used for Fortran, + # We link GCC runtime libraries that are not specifically used for Fortran, # which are linked by the GCC formula. We only use the versioned shared libraries # as the other shared and static libraries are only used at build time where # GCC can find its own libraries. diff --git a/Library/Homebrew/livecheck/strategy/sparkle.rb b/Library/Homebrew/livecheck/strategy/sparkle.rb index 311547ce8d..4b0c53acd4 100644 --- a/Library/Homebrew/livecheck/strategy/sparkle.rb +++ b/Library/Homebrew/livecheck/strategy/sparkle.rb @@ -92,7 +92,7 @@ module Homebrew pub_date = item.elements["pubDate"]&.text&.strip&.presence&.then do |date_string| Time.parse(date_string) rescue ArgumentError - # Omit unparseable strings (e.g. non-English dates) + # Omit unparsable strings (e.g. non-English dates) nil end diff --git a/Library/Homebrew/requirement.rb b/Library/Homebrew/requirement.rb index 525f6522ca..72e77249cc 100644 --- a/Library/Homebrew/requirement.rb +++ b/Library/Homebrew/requirement.rb @@ -219,7 +219,7 @@ class Requirement # `[dependent, req]` pairs to allow callers to apply arbitrary filters to # the list. # The default filter, which is applied when a block is not given, omits - # optionals and recommendeds based on what the dependent has asked for. + # optionals and recommends based on what the dependent has asked for. def expand(dependent, cache_key: nil, &block) if cache_key.present? cache[cache_key] ||= {} diff --git a/Library/Homebrew/simulate_system.rb b/Library/Homebrew/simulate_system.rb index e4f1a75088..e03987b826 100644 --- a/Library/Homebrew/simulate_system.rb +++ b/Library/Homebrew/simulate_system.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Homebrew - # Helper module for simulating different system condfigurations. + # Helper module for simulating different system configurations. # # @api private class SimulateSystem diff --git a/Library/Homebrew/test/caveats_spec.rb b/Library/Homebrew/test/caveats_spec.rb index 4a0681b3e3..b5d8766554 100644 --- a/Library/Homebrew/test/caveats_spec.rb +++ b/Library/Homebrew/test/caveats_spec.rb @@ -107,7 +107,7 @@ describe Caveats do allow(Utils::Service).to receive(:systemctl?).and_return(true) end - it "prints warning when no service deamon is found" do + it "prints warning when no service daemon is found" do f = formula do url "foo-1.0" service do diff --git a/Library/Homebrew/test/livecheck/livecheck_spec.rb b/Library/Homebrew/test/livecheck/livecheck_spec.rb index 9f3d090c9d..313a59bccc 100644 --- a/Library/Homebrew/test/livecheck/livecheck_spec.rb +++ b/Library/Homebrew/test/livecheck/livecheck_spec.rb @@ -265,7 +265,7 @@ describe Homebrew::Livecheck do describe "::preprocess_url" do let(:github_git_url_with_extension) { "https://github.com/Homebrew/brew.git" } - it "returns the unmodified URL for an unparseable URL" do + it "returns the unmodified URL for an unparsable URL" do # Modeled after the `head` URL in the `ncp` formula expect(livecheck.preprocess_url(":something:cvs:@cvs.brew.sh:/cvs")) .to eq(":something:cvs:@cvs.brew.sh:/cvs") diff --git a/Library/Homebrew/test/rubocops/bottle/bottle_digest_indentation_spec.rb b/Library/Homebrew/test/rubocops/bottle/bottle_digest_indentation_spec.rb index a611a35ee2..ca080e2a5e 100644 --- a/Library/Homebrew/test/rubocops/bottle/bottle_digest_indentation_spec.rb +++ b/Library/Homebrew/test/rubocops/bottle/bottle_digest_indentation_spec.rb @@ -5,7 +5,7 @@ require "rubocops/bottle" describe RuboCop::Cop::FormulaAudit::BottleDigestIndentation do subject(:cop) { described_class.new } - it "reports no offenses for `bottle :uneeded`" do + it "reports no offenses for `bottle :unneeded`" do expect_no_offenses(<<~RUBY) class Foo < Formula url "https://brew.sh/foo-1.0.tgz" diff --git a/Library/Homebrew/test/rubocops/bottle/bottle_format_spec.rb b/Library/Homebrew/test/rubocops/bottle/bottle_format_spec.rb index eca0786bb8..b76c497029 100644 --- a/Library/Homebrew/test/rubocops/bottle/bottle_format_spec.rb +++ b/Library/Homebrew/test/rubocops/bottle/bottle_format_spec.rb @@ -5,7 +5,7 @@ require "rubocops/bottle" describe RuboCop::Cop::FormulaAudit::BottleFormat do subject(:cop) { described_class.new } - it "reports no offenses for `bottle :uneeded`" do + it "reports no offenses for `bottle :unneeded`" do expect_no_offenses(<<~RUBY) class Foo < Formula url "https://brew.sh/foo-1.0.tgz" diff --git a/Library/Homebrew/test/rubocops/bottle/bottle_order_spec.rb b/Library/Homebrew/test/rubocops/bottle/bottle_order_spec.rb index 6f2be88b9e..2a095c2c0c 100644 --- a/Library/Homebrew/test/rubocops/bottle/bottle_order_spec.rb +++ b/Library/Homebrew/test/rubocops/bottle/bottle_order_spec.rb @@ -5,7 +5,7 @@ require "rubocops/bottle" describe RuboCop::Cop::FormulaAudit::BottleOrder do subject(:cop) { described_class.new } - it "reports no offenses for `bottle :uneeded`" do + it "reports no offenses for `bottle :unneeded`" do expect_no_offenses(<<~RUBY) class Foo < Formula url "https://brew.sh/foo-1.0.tgz" diff --git a/Library/Homebrew/test/rubocops/bottle/bottle_tag_indentation_spec.rb b/Library/Homebrew/test/rubocops/bottle/bottle_tag_indentation_spec.rb index c90508a855..36c264b1f2 100644 --- a/Library/Homebrew/test/rubocops/bottle/bottle_tag_indentation_spec.rb +++ b/Library/Homebrew/test/rubocops/bottle/bottle_tag_indentation_spec.rb @@ -5,7 +5,7 @@ require "rubocops/bottle" describe RuboCop::Cop::FormulaAudit::BottleTagIndentation do subject(:cop) { described_class.new } - it "reports no offenses for `bottle :uneeded`" do + it "reports no offenses for `bottle :unneeded`" do expect_no_offenses(<<~RUBY) class Foo < Formula url "https://brew.sh/foo-1.0.tgz" diff --git a/Library/Homebrew/test/rubocops/text/strict_spec.rb b/Library/Homebrew/test/rubocops/text/strict_spec.rb index 89f9ef7f12..66315f4d9d 100644 --- a/Library/Homebrew/test/rubocops/text/strict_spec.rb +++ b/Library/Homebrew/test/rubocops/text/strict_spec.rb @@ -122,7 +122,7 @@ describe RuboCop::Cop::FormulaAuditStrict::Text do RUBY end - it %Q(reports no offenses if formula name appears afer "\#{share}/") do + it %Q(reports no offenses if formula name appears after "\#{share}/") do expect_no_offenses(<<~RUBY, "/homebrew-core/Formula/foo.rb") class Foo < Formula def install diff --git a/Library/Homebrew/test/test_runner_formula_spec.rb b/Library/Homebrew/test/test_runner_formula_spec.rb index 23edbe267c..df7c0b32ab 100644 --- a/Library/Homebrew/test/test_runner_formula_spec.rb +++ b/Library/Homebrew/test/test_runner_formula_spec.rb @@ -143,7 +143,7 @@ describe TestRunnerFormula do end end - context "when a formula does not require a specfic architecture" do + context "when a formula does not require a specific architecture" do it "returns false" do expect(described_class.new(testball).x86_64_only?).to be(false) expect(described_class.new(xcode_helper).x86_64_only?).to be(false) diff --git a/Library/Homebrew/utils/shfmt.sh b/Library/Homebrew/utils/shfmt.sh index 996d1bb18b..3655b315aa 100755 --- a/Library/Homebrew/utils/shfmt.sh +++ b/Library/Homebrew/utils/shfmt.sh @@ -97,7 +97,7 @@ fi ### # Check for specific patterns and prompt messages if detected -no_forbidden_patten() { +no_forbidden_pattern() { local file="$1" local tempfile="$2" local subject="$3" @@ -131,7 +131,7 @@ no_tabs() { local file="$1" local tempfile="$2" - no_forbidden_patten "${file}" "${tempfile}" \ + no_forbidden_pattern "${file}" "${tempfile}" \ "Indent with tab" \ 'Replace tabs with 2 spaces instead.' \ '^[[:space:]]+' \ @@ -167,7 +167,7 @@ Use the followings instead (keep for statements only one line): EOMSG )" - no_forbidden_patten "${file}" "${tempfile}" \ + no_forbidden_pattern "${file}" "${tempfile}" \ "Multiline for statement" \ "${message}" \ "${regex}" @@ -197,7 +197,7 @@ Use the followings instead: EOMSG )" - no_forbidden_patten "${file}" "${tempfile}" \ + no_forbidden_pattern "${file}" "${tempfile}" \ "Pattern \`IFS=\$'\\n'\`" \ "${message}" \ "${regex}" diff --git a/docs/Brew-Livecheck.md b/docs/Brew-Livecheck.md index bc6e89cd4c..2e1f3c3a22 100644 --- a/docs/Brew-Livecheck.md +++ b/docs/Brew-Livecheck.md @@ -47,7 +47,7 @@ The `livecheck` block regex restricts matches to a subset of the fetched content * **Anchor the start/end of the regex, to restrict the scope**. For example, on HTML pages we often match file names or version directories in `href` attribute URLs (e.g. `/href=.*?example[._-]v?(\d+(?:\.\d+)+)\.zip/i`). The general idea is that limiting scope will help exclude unwanted matches. -* **Avoid generic catch-alls like `.*` or `.+`** in favor of something non-greedy and/or contextually appropriate. For example, to match characters within the bounds of an HTML attribute, use `[^"' >]+?`. +* **Avoid generic catchalls like `.*` or `.+`** in favor of something non-greedy and/or contextually appropriate. For example, to match characters within the bounds of an HTML attribute, use `[^"' >]+?`. * **Use `[._-]` in place of a period/underscore/hyphen between the software name and version in a file name**. For a file named `example-1.2.3.tar.gz`, `example[._-]v?(\d+(?:\.\d+)+)\.t` will continue matching if the upstream file name format changes to `example_1.2.3.tar.gz` or `example.1.2.3.tar.gz`. diff --git a/docs/Cask-Cookbook.md b/docs/Cask-Cookbook.md index 3b9ed489ec..4d8cf852d3 100644 --- a/docs/Cask-Cookbook.md +++ b/docs/Cask-Cookbook.md @@ -1125,7 +1125,7 @@ Artifacts also may be distributed via Git repositories. URLs that end in `.git` | `tag:` | string identifying the Git tag to download | `revision:` | string identifying the Git revision to download | `branch:` | string identifying the Git branch to download -| `only_path:` | path within the repository to limit the checkout to. If only a single directory of a large repository is required, using this option can signficantly speed up downloads. If provided, artifact paths are relative to this path. +| `only_path:` | path within the repository to limit the checkout to. If only a single directory of a large repository is required, using this option can significantly speed up downloads. If provided, artifact paths are relative to this path. #### SourceForge/OSDN URLs diff --git a/docs/Formula-Cookbook.md b/docs/Formula-Cookbook.md index 79f0823c46..da2013f0d7 100644 --- a/docs/Formula-Cookbook.md +++ b/docs/Formula-Cookbook.md @@ -991,7 +991,7 @@ Keep alive until the service exits with a non-zero return code: ```ruby service do run [opt_bin/"beanstalkd", "test"] - keep_alive succesful_exit: true + keep_alive successful_exit: true end ``` diff --git a/docs/governance/2022-agm-minutes.md b/docs/governance/2022-agm-minutes.md index 99419c5a52..3ac9bee228 100644 --- a/docs/governance/2022-agm-minutes.md +++ b/docs/governance/2022-agm-minutes.md @@ -9,7 +9,7 @@ - 19:05 Project Leader Report (10 min, Mike McQuaid) - 19:15 Project Leadership Committee Report (10 min, Misty De Méo) - 19:25 Treasurer's Financial Report (5 min, Jon Chang) -- 19:30 Technical Steering Commitee Report (10 min, Rylan Polster) +- 19:30 Technical Steering Committee Report (10 min, Rylan Polster) ## Election Results diff --git a/docs/governance/2023-agm-minutes.md b/docs/governance/2023-agm-minutes.md index 9e3e2e3f24..eeb7e55a88 100644 --- a/docs/governance/2023-agm-minutes.md +++ b/docs/governance/2023-agm-minutes.md @@ -1,4 +1,4 @@ -# Homebrew Annual General Meeting 2022 +# Homebrew Annual General Meeting 2023 ## Minutes @@ -8,7 +8,7 @@ - 09:15 Project Leader Report (15 min, Mike McQuaid) - 09:40 Project Leadership Committee Report (15 min, Sean Molenaar) -- 10:00 Technical Steering Commitee Report (15 min, Michka Popoff) +- 10:00 Technical Steering Committee Report (15 min, Michka Popoff) ## Election Results