Add deprecate! and disable! to cask stanza order
This commit is contained in:
parent
641a80475e
commit
53c1e6ecdb
@ -74,7 +74,7 @@ module RuboCop
|
||||
|
||||
Constants::STANZA_ORDER.each do |stanza_name|
|
||||
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
|
||||
end # end
|
||||
RUBY
|
||||
|
||||
@ -19,6 +19,7 @@ module RuboCop
|
||||
[:language],
|
||||
[:url, :appcast, :name, :desc, :homepage],
|
||||
[:livecheck],
|
||||
[:deprecate!, :disable!],
|
||||
[
|
||||
:auto_updates,
|
||||
:conflicts_with,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user