rodjek / puppet-lint

Check that your Puppet manifests conform to the style guide
MIT License
819 stars 204 forks source link

Feature request - align class parameters #626

Open michalmiddleton opened 7 years ago

michalmiddleton commented 7 years ago

I'd love if linter aligned parameters/variables in class definitions the way it aligns arrows. Example:

class mycompany::myprofiles::myclass (
    $var1 = 'default',
    $varother2   = hiera('mycompany::myprofiles::myclass::myvar2'),
    $var3     = 'something else',
) {
...
}

should be aligned as:

class mycompany::myprofiles::myclass (
    $var1         = 'default',
    $varother2    = hiera('mycompany::myprofiles::myclass::myvar2'),
    $var3         = 'something else',
) {
...
}
binford2k commented 7 years ago

https://github.com/puppetlabs/puppet-docs/pull/723

JacobHenner commented 6 years ago

Any update on this?

davehewy commented 6 years ago

I'd like this also +1

dekonnection commented 5 years ago

+1

sp-ricard-valverde commented 3 years ago

Just bumped into this. I would love it for consistency with the alignment behaviour with Hash rockets.

thde commented 4 months ago

I think anhpt379/puppet-lint-class_alignment-check implements this.