class Object

Public Instance Methods

check() click to toggle source
# File lib/puppet-lint/plugins/no_chaining_arrows.rb, line 7
def check
  arrow_tokens = [:OUT_EDGE, :OUT_EDGE_SUB, :IN_EDGE, :IN_EDGE_SUB]

  tokens.select { |r| arrow_tokens.include? r.type }.each do |token|
    notify(
      :warning,
      :message => 'chaining arrow found',
      :line    => token.line,
      :column  => token.column
    )
  end
end