Add deprecate! and disable! to cask stanza order

This commit is contained in:
Rylan Polster 2023-12-04 00:38:32 -05:00
parent 641a80475e
commit 53c1e6ecdb
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64
2 changed files with 4 additions and 3 deletions

View File

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

View File

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