-
Notifications
You must be signed in to change notification settings - Fork 206
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
nested ensure misdetected as not coming first. #410
Comments
ensure is not an attribute at all in this case as it is on the right side of the attribute assignment. |
Right, and should not cause the warning to be flagged. |
We see this for stuff relating to the mysql module, users, grants etc :( |
I may look for alternative linters, as I find this a necessity. Otherwise, my travis will give me a nice red button on my |
@jeff1evesque You can disable checks. Here is an example https://github.com/ghoneycutt/puppet-module-vim/blob/master/Rakefile#L3 |
@ghoneycutt, thank you! I will most likely consider the following disabling check syntax:
|
@jamesooden @benohara Can either of you link to a use of this in practical code? The example code does not make sense, as |
Not anymore; I don't work for that company any more. I assure you it was On Sat, Jun 25, 2016 at 12:38 AM, Rob Nelson [email protected]
|
@jamesooden I wasn't seeing the context properly, but I see it now. Working on a PR. |
Fixed in #490. Thanks! |
Is this allready in a release? Because with the most recent version of lint (2.3.6), I still get this error:
This is the piece of code:
|
Confirmed that this seems to have regressed. |
Ignore hash keys when checking resource parameter order
Taking the following puppet code:
And running puppet-lint against it I will get the following warning:
Which is not true, as the ensure is embedded in the next level of the structure and at that level it is the first attribute.
The text was updated successfully, but these errors were encountered: