diff --git a/Library/Homebrew/rubocops/options_cop.rb b/Library/Homebrew/rubocops/options_cop.rb index 7818787c4a..400ea807bb 100644 --- a/Library/Homebrew/rubocops/options_cop.rb +++ b/Library/Homebrew/rubocops/options_cop.rb @@ -46,8 +46,8 @@ module RuboCop module NewFormulaAudit class Options < FormulaCop - DEP_OPTION = "New Formula should not use `deprecated_option`".freeze - OPTION = "Formula should not have an `option`".freeze + DEP_OPTION = "New formulae should not use `deprecated_option`".freeze + OPTION = "Formulae should not have an `option`".freeze def audit_formula(_node, _class_node, _parent_class_node, body_node) return if versioned_formula? diff --git a/Library/Homebrew/test/rubocops/options_cop_spec.rb b/Library/Homebrew/test/rubocops/options_cop_spec.rb index d44f044487..de3e2a205a 100644 --- a/Library/Homebrew/test/rubocops/options_cop_spec.rb +++ b/Library/Homebrew/test/rubocops/options_cop_spec.rb @@ -60,7 +60,7 @@ describe RuboCop::Cop::NewFormulaAudit::Options do class Foo < Formula url 'http://example.com/foo-1.0.tgz' deprecated_option "examples" => "with-examples" - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ New Formula should not use `deprecated_option` + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ New formulae should not use `deprecated_option` end RUBY end @@ -70,7 +70,7 @@ describe RuboCop::Cop::NewFormulaAudit::Options do class Foo < Formula url 'http://example.com/foo-1.0.tgz' option "with-examples" - ^^^^^^^^^^^^^^^^^^^^^^ Formula should not have an `option` + ^^^^^^^^^^^^^^^^^^^^^^ Formulae should not have an `option` end RUBY end