rubocops/cask: arch stanzas come before & are separate to on_#{arch}

- https://github.com/Homebrew/brew/pull/14976#issuecomment-1469002998.
- This drops the number of offenses currently in the Cask repo down from
  111 to 46.
This commit is contained in:
Issy Long 2023-03-14 23:30:47 +00:00
parent b6062acdbe
commit b484a29006
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -6,7 +6,8 @@ module RuboCop
# Constants available globally for use in all cask cops.
module Constants
STANZA_GROUPS = [
[:on_arm, :on_intel, :arch, :on_arch_conditional],
[:arch, :on_arch_conditional],
[:on_arm, :on_intel],
[:version, :sha256],
[:language],
[:url, :appcast, :name, :desc, :homepage],