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

fix lint warnings #1115

Merged
merged 2 commits into from
Aug 29, 2017
Merged

fix lint warnings #1115

merged 2 commits into from
Aug 29, 2017

Conversation

PascalBourdier
Copy link
Contributor

No description provided.

Copy link
Collaborator

@wyardley wyardley left a comment

Choose a reason for hiding this comment

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

Looks good, and I'm in favor of getting rid of the lint warnings, just wondering if in some cases, we may just want to reformat the docs / code rather than ignoring the warnings?

@@ -1,5 +1,7 @@
# define: nginx::resource::mailhost
#
# lint:ignore:140chars
#
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we just wrap these lines @ 140 char rather than ignoring the lint warnings? I realize it's just docs, but...

If you indent the following line one more space

# blah blah
#   blah

it will get continued as one lines in the YARD doc, I think. Also, we'll switch to Puppet strings for param docs at some point anyway.

@@ -251,7 +251,7 @@
# Only try to manage these files if they're the default one (as you presumably
# usually don't want the default template if you're using a custom file.

if $ensure == present and $fastcgi != undef and !defined(File[$fastcgi_params]) and $fastcgi_params == "${::nginx::conf_dir}/fastcgi.conf" {
if $ensure == present and $fastcgi != undef and !defined(File[$fastcgi_params]) and $fastcgi_params == "${::nginx::conf_dir}/fastcgi.conf" { # lint:ignore:140chars
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can this conditional just be broken up into multiple lines as well?

@wyardley wyardley merged commit a2ce428 into voxpupuli:master Aug 29, 2017
@wyardley
Copy link
Collaborator

Awesome. I squash-merged it rather than making you squash the commits. Thanks for the contribution.

cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Sep 13, 2019
Rubueno pushed a commit to Rubueno/puppet-nginx that referenced this pull request Oct 19, 2020
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.

2 participants