Arrows (=>
) within blocks of attributes (like resource declarations,
selectors, hashes, etc) should be aligned with the other arrows in that block
(style guide).
file { '/tmp/foo':
ensure => present,
mode => '0444',
}
file { '/tmp/foo':
ensure => present,
mode => '0444',
}
To disable this check you can add --no-arrow_alignment-check
to your
puppet-lint
command line.
$ puppet-lint --no-arrow_alignment-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_arrow_alignment')