Sha256: e0f175bc00fb023f890921e03f8ab58186af02ff26219e2f29b4e8bd0eeaa5f6

Contents?: true

Size: 339 Bytes

Versions: 2

Compression:

Stored size: 339 Bytes

Contents

PuppetLint.new_check(:spaceship_operator_without_tag) do
  def check
    tokens.each do |t|
      next unless 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puppet-lint-spaceship_operator_without_tag-check-1.0.1 lib/puppet-lint/plugins/check_spaceship_operator_without_tag.rb
puppet-lint-spaceship_operator_without_tag-check-1.0.0 lib/puppet-lint/plugins/check_spaceship_operator_without_tag.rb