AtomLinter / linter-puppet-lint

Atom linter plugin for Puppet, using puppet-lint
6 stars 3 forks source link

Feature request - align class variables #115

Closed michalmiddleton closed 7 years ago

michalmiddleton commented 7 years ago

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

class mycompany::myprofiles::myclass (
    $var1      = 'default',
    $var2      = hiera('mycompany::myprofiles::myclass::myvar2'),
) {
...
}
mschuchard commented 7 years ago

This is beyond the functionality of Puppet-Lint or this associated Atom Editor package. You can make this request with Language-Puppet or some other package that does auto-formatting.

michalmiddleton commented 7 years ago

Oh I see, this is just a wrapper for Puppet-Lint. The feature I was thinking of would be similar to "--no-arrow_alignment-check", just applied to Class Parameters. Thanks, I'll open this FR with Puppet-Lint