-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
puppet-lint: Enable whitespace checker #947
Conversation
Hi people, |
upstream bug: voxpupuli/puppet-lint-manifest_whitespace-check#4 |
manifests/plugin/apache.pp
Outdated
@@ -2,11 +2,10 @@ | |||
class collectd::plugin::apache ( | |||
Enum['present', 'absent'] $ensure = 'present', | |||
Boolean $manage_package = $collectd::manage_package, | |||
Hash $instances = { 'localhost' => { 'url' => 'http://localhost/mod_status?auto' } }, | |||
Hash $instances = { 'localhost' => { 'url' => 'http://localhost/mod_status?auto' }}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this space removed, but not the others?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bug. It should keep the space.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a side note, I had a similar case where I had a default value for a Hash (but more data and thus multiline), which crashed class_parameter-check
manifests/params.pp
Outdated
@@ -33,12 +32,12 @@ | |||
|
|||
case $facts['kernel'] { | |||
'OpenBSD': { $has_wordexp = false } | |||
default: { $has_wordexp = true } | |||
default: { $has_wordexp = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It made sense to align the cases before though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
gem 'voxpupuli-test', '>= 1.4.0', :require => false | ||
gem 'puppet-lint-manifest_whitespace-check', :require => false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to make this a part of vp-test 1.5.0 if it works well (which it appears to do)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, me too. I just added it for testing / enable people to reproduce this.
why extensivly tested this in voxpupuli/puppet-collectd#947
Dear @bastelfreak, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
This was included in modulesync 3.0.0 |
Pull Request (PR) description
This Pull Request (PR) fixes the following issues