Sha256: 1d660b18f3c0f299b20a710b21f1ec95a4d42197cafae912267693503fd2dd9e
Contents?: true
Size: 1.54 KB
Versions: 1
Compression:
Stored size: 1.54 KB
Contents
puppet-lint-appends-check ==================================== [![Gem Version](https://img.shields.io/gem/v/puppet-lint-absolute_classname-check.svg)](https://rubygems.org/gems/puppet-lint-absolute_classname-check) [![Gem Downloads](https://img.shields.io/gem/dt/puppet-lint-absolute_classname-check.svg)](https://rubygems.org/gems/puppet-lint-absolute_classname-check) [![Coverage Status](https://img.shields.io/coveralls/puppet-community/puppet-lint-absolute_classname-check.svg)](https://coveralls.io/r/puppet-community/puppet-lint-absolute_classname-check?branch=master) A puppet-lint plugin to check that classes are included by their absolute name. ## Installing ### From the command line ```shell $ gem install puppet-lint-appends-check ``` ### In a Gemfile ```ruby gem 'puppet-lint-appends-check', :require => false ``` ## Checks ### Relative class name inclusion Including a class by a relative name might lead to unexpected results. #### What you have done ```puppet $ssh_users = ['myself', 'someone'] class test { $ssh_users += ['someone_else'] } ``` #### What you should have done ```puppet $ssh_users = ['myself', 'someone', 'someone_else'] # OR $ssh_users = hiera('ssh_users') ``` #### Disabling the check To disable this check, you can add `--no-appends-check` to your puppet-lint command line. ```shell $ puppet-lint --no-appends-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`. ```ruby PuppetLint.configuration.send('disable_appends') ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-lint-appends-check-0.1.0 | README.md |