options_cop: formula -> formulae
This commit is contained in:
parent
ca919de13e
commit
1a4340161c
@ -46,8 +46,8 @@ module RuboCop
|
|||||||
|
|
||||||
module NewFormulaAudit
|
module NewFormulaAudit
|
||||||
class Options < FormulaCop
|
class Options < FormulaCop
|
||||||
DEP_OPTION = "New Formula should not use `deprecated_option`".freeze
|
DEP_OPTION = "New formulae should not use `deprecated_option`".freeze
|
||||||
OPTION = "Formula should not have an `option`".freeze
|
OPTION = "Formulae should not have an `option`".freeze
|
||||||
|
|
||||||
def audit_formula(_node, _class_node, _parent_class_node, body_node)
|
def audit_formula(_node, _class_node, _parent_class_node, body_node)
|
||||||
return if versioned_formula?
|
return if versioned_formula?
|
||||||
|
|||||||
@ -60,7 +60,7 @@ describe RuboCop::Cop::NewFormulaAudit::Options do
|
|||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url 'http://example.com/foo-1.0.tgz'
|
url 'http://example.com/foo-1.0.tgz'
|
||||||
deprecated_option "examples" => "with-examples"
|
deprecated_option "examples" => "with-examples"
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ New Formula should not use `deprecated_option`
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ New formulae should not use `deprecated_option`
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
end
|
end
|
||||||
@ -70,7 +70,7 @@ describe RuboCop::Cop::NewFormulaAudit::Options do
|
|||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url 'http://example.com/foo-1.0.tgz'
|
url 'http://example.com/foo-1.0.tgz'
|
||||||
option "with-examples"
|
option "with-examples"
|
||||||
^^^^^^^^^^^^^^^^^^^^^^ Formula should not have an `option`
|
^^^^^^^^^^^^^^^^^^^^^^ Formulae should not have an `option`
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user