puppet-lint icon indicating copy to clipboard operation
puppet-lint copied to clipboard

Puppet-lint does not report hash rocket alignment inside a hash definition

Open asselvakumar opened this issue 4 years ago • 1 comments

The puppet-lint does not report the hash rocket alignment warning inside the hash definition, for example.

$stools_ensure = $facts['fqdn'] ? {
    /^\w+alignment-us+/ => 'installed',
    default      => 'absent'
  }

If the same alignment is given inside the resource, puppet-lint is producing a warning, for example.

file { '/etc/passwd':
  ensure => file,
owner => 'root',
group => $rootgroup,
}
warning: puppet-lint: manifests/testing.pp:14:7: indentation of => is not properly aligned (expected in column 8, but found it in column 7)

asselvakumar avatar Jul 27 '21 01:07 asselvakumar

@asselvakumar Development has recently moved to a fork maintained by Puppet Inc. You may wish to open this issue over at https://github.com/puppetlabs/puppet-lint/issues

alexjfisher avatar Aug 09 '21 13:08 alexjfisher