Add deprecate! and disable! to cask stanza order
This commit is contained in:
parent
641a80475e
commit
53c1e6ecdb
@ -74,9 +74,9 @@ module RuboCop
|
|||||||
|
|
||||||
Constants::STANZA_ORDER.each do |stanza_name|
|
Constants::STANZA_ORDER.each do |stanza_name|
|
||||||
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
||||||
def #{stanza_name}? # def url?
|
def #{stanza_name.to_s.chomp("!")}? # def url?
|
||||||
stanza_name == :#{stanza_name} # stanza_name == :url
|
stanza_name == :#{stanza_name} # stanza_name == :url
|
||||||
end # end
|
end # end
|
||||||
RUBY
|
RUBY
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -19,6 +19,7 @@ module RuboCop
|
|||||||
[:language],
|
[:language],
|
||||||
[:url, :appcast, :name, :desc, :homepage],
|
[:url, :appcast, :name, :desc, :homepage],
|
||||||
[:livecheck],
|
[:livecheck],
|
||||||
|
[:deprecate!, :disable!],
|
||||||
[
|
[
|
||||||
:auto_updates,
|
:auto_updates,
|
||||||
:conflicts_with,
|
:conflicts_with,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user