Skip to content

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

@asselvakumar

Description

@asselvakumar

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)

Activity

alexjfisher

alexjfisher commented on Aug 9, 2021

@alexjfisher
Contributor

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @alexjfisher@asselvakumar

        Issue actions

          Puppet-lint does not report hash rocket alignment inside a hash definition · Issue #951 · rodjek/puppet-lint