Sha256: 2d3863ecf5a67e6533744eec2e5ef39fe4d968c641c503b0d7948ffd0a69b0f1

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

PuppetLint.new_check(:spaceship_operator_without_tag) do
  def check
    tokens.each do |t|
      if t.type == :LCOLLECT and t.next_code_token.type == :RCOLLECT
        notify :warning, {
          :message => 'spaceship operator without tag',
          :line    => t.line,
          :column  => t.column,
          :token   => t,
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puppet-lint-spaceship_operator_without_tag-check-0.1.1 lib/puppet-lint/plugins/check_spaceship_operator_without_tag.rb
puppet-lint-spaceship_operator_without_tag-check-0.1.0 lib/puppet-lint/plugins/check_spaceship_operator_without_tag.rb