Arrow Alignment


Arrows (=>) within blocks of attributes (like resource declarations, selectors, hashes, etc) should be aligned with the other arrows in that block (style guide).

What you have done

file { '/tmp/foo':
    ensure => present,
    mode => '0444',
}

What you should have done:

file { '/tmp/foo':
  ensure => present,
  mode   => '0444',
}

Disabling the check

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')