puppet-lint-spaceship_operator_without_tag-check

Build Status Code Climate Gem Version Coverage Status

A puppet-lint plugin to check that spaceship operator is called with a tag.

Checks

Spaceship operator without tag

Calling spaceship operator (<| |>) without tag can be dangerous because it will realise all virtual resources of that type.

What you have done

Package <| |>

What you should have done

Package <| tag != 'virtual' |>

Disabling the check

To disable this check, you can add --no-spaceship_operator_without_tag_in_case-check to your puppet-lint command line.

$ puppet-lint --no-spaceship_operator_without_tag_in_case-check path/to/file.pp

Alternatively, if you’re calling puppet-lint via the Rake task, you should insert the following line to your Rakefile.

PuppetLint.configuration.send('disable_spaceship_operator_without_tag_in_case')