puppetlabs / puppet-lint

Check that your Puppet manifests conform to the style guide
https://puppetlabs.github.io/puppet-lint/
MIT License
18 stars 12 forks source link

check_whitespace/arrow_alignment doesn't handle all cases properly #174

Open gerases opened 8 months ago

gerases commented 8 months ago

Describe the Bug

Given code similar to below:

someresource { 'title':
  foo          => 'bar',
}

No warnings are raised

Expected Behavior

I would expect the extra white space to be flagged, but I realize this might have been outside the scope of this plugin. If this is the case, can you recommend the plugin needed?

gerases commented 8 months ago

Upon further contemplation, I realized that it's probably outside the scope of this arrow_alignment plugin. So I wrote a separate plugin to handle this case. I will submit a PR within the coming days.