-
-
Notifications
You must be signed in to change notification settings - Fork 883
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
fix lint warnings #1115
Conversation
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, 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?
manifests/resource/mailhost.pp
Outdated
@@ -1,5 +1,7 @@ | |||
# define: nginx::resource::mailhost | |||
# | |||
# lint:ignore:140chars | |||
# |
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.
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.
manifests/resource/location.pp
Outdated
@@ -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 |
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.
Can this conditional just be broken up into multiple lines as well?
Awesome. I squash-merged it rather than making you squash the commits. Thanks for the contribution. |
* fix lint warnings
* fix lint warnings
No description provided.