Class: RuboCop::Cop::Cask::StanzaOrder

Inherits:
Base
  • Object
show all
Extended by:
AutoCorrector, Forwardable
Includes:
CaskHelp
Defined in:
rubocops/cask/stanza_order.rb

Overview

This cop checks that a cask’s stanzas are ordered correctly.

Constant Summary collapse

MESSAGE =
"`%<stanza>s` stanza out of order"

Instance Method Summary collapse

Methods included from CaskHelp

#on_block

Instance Method Details

#on_cask(cask_block) ⇒ Object



18
19
20
21
# File 'rubocops/cask/stanza_order.rb', line 18

def on_cask(cask_block)
  @cask_block = cask_block
  add_offenses
end