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

View File

@ -19,6 +19,7 @@ module RuboCop
[:language],
[:url, :appcast, :name, :desc, :homepage],
[:livecheck],
[:deprecate!, :disable!],
[
:auto_updates,
:conflicts_with,