options_cop: formula -> formulae

This commit is contained in:
commitay 2018-06-02 16:56:50 +10:00
parent ca919de13e
commit 1a4340161c
2 changed files with 4 additions and 4 deletions

View File

@ -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?

View File

@ -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