Name: puppet-lint-appends-check
Owner: Vox Pupuli
Description: null
Created: 2015-03-11 21:54:19.0
Updated: 2016-12-14 08:15:29.0
Pushed: 2016-12-14 08:15:28.0
Homepage: null
Size: 13
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A puppet-lint plugin to check that the append (+=) operator is unused.
m install puppet-lint-appends-check
'puppet-lint-appends-check', :require => false
Use of the append operator can lead to unexpected behavior.
_users = ['myself', 'someone']
s test {
sh_users += ['someone_else']
_users = ['myself', 'someone', 'someone_else']
_users = hiera('ssh_users')
There is not one way to properly fix this type of style error, so running puppet-lint's fix feature will not have any effect.
To disable this check, you can add --no-appends-check
to your puppet-lint command line.
ppet-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
.
etLint.configuration.send('disable_appends')