Skip to content
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

(maint) Fixes for Forge score #47

Merged

Conversation

MikaelSmith
Copy link
Contributor

  • Add Puppet version requirement to metadata
  • Use Forge 'Puppet Approved' Lint settings

Michael Smith added 2 commits July 9, 2015 15:43
Without this the Forge compares against Puppet 3.7, which will fail to
compile the module.
https://forge.puppetlabs.com/approved/criteria outlines lint settings
used to score Forge modules. Use those settings and fix new lint
warnings/errors.

Nested loops seem to throw puppet-lint for a loop, so introduce a local
variable to circumvent a bogus warning.
@@ -12,7 +12,8 @@
}

# manage puppet.conf contents, using inifile module
['master', 'agent', 'main'].each |$section| {
['master', 'agent', 'main'].each |$loop_section| {
$section = $loop_section
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint is dumb.

manifests/prepare/puppet_config.pp - WARNING: top-scope variable being used without an explicit namespace on line 29
manifests/prepare/puppet_config.pp - WARNING: top-scope variable being used without an explicit namespace on line 31

underscorgan pushed a commit that referenced this pull request Jul 9, 2015
@underscorgan underscorgan merged commit 50ac813 into puppetlabs:master Jul 9, 2015
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 3.8.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@MikaelSmith MikaelSmith deleted the maint/master/improve-module-score branch March 17, 2016 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants