# File lib/puppet-lint/plugins/check_whitespace.rb, line 27
  def check
    tokens.select { |token|
      token.type == :WHITESPACE
    }.select { |token|
      token.next_token.nil? || token.next_token.type == :NEWLINE
    }.each do |token|
      notify :error, {
        :message => 'trailing whitespace found',
        :line    => token.line,
        :column  => token.column,
        :token   => token,
      }
    end
  end