options_cop: formula -> formulae
This commit is contained in:
parent
ca919de13e
commit
1a4340161c
@ -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?
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user