-
Notifications
You must be signed in to change notification settings - Fork 205
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
Wrong behaviour of variable_contains_dash #504
Comments
@rnelson0 I have also been bitten by this. Will test this commit over the weekend and let you know. |
@torrancew @obourdon Any updates? Thanks! |
I see what is going on. my code puppet-lint --fix # v 2.0.0 puppet-lint --fix # v 2.0.1 So far so good. However the code on head now parses the fixed version of the code |
Thanks for the update. I'm not sure what the fix is yet, and focus is on the 2.0.1 release right now, but if a solution is found maybe we can fit it in. if not, next one |
I just started getting hit by exactly the described behaviour on an upgrade from v2.0.0 to v2.0.1. Here is an easily reproducible example:
|
I too am getting bitten by the same thing as @bmfurtado |
Yeah issue here as well, going to possibly revert to 2.0.0 as this is a heavy use case for use. |
Alright, we will put this down for a quicker fix than 2.1.0. Traveling right now, though. |
Just to be clear - 2.0.1 properly fixes the actual issue. It then throws a false positive saying there is still an issue. Correct? |
Mostly correct, but slightly more complicated. 2.0.0 can't fix the problem correctly, but the check is correct. In the short term I would prefer that we keep the check working rather than the fix. |
2.0.2 was released which reverted the related change in 2.0.1 until it can be revisited properly. I am in Iowa, the place where cell signals go to die, so will not be able to do so myself for a while and hope this is a sufficient stopgap. |
Upgrading from v2.0.1 to v2.0.2 resolved this issue for me. |
Patch Set 1: Recheck The puppet-lint error is caused by rodjek/puppet-lint#504, should be fixed by puppet-lint 2.0.2 Patch-set: 1 Reviewer: Gerrit User 113 <113@270e2033-b340-4cff-9539-693957ebf0e7> Label: Workflow=0
The following kind of code produce warnings without reason:
The code should check whether or not the variable is enclosed in angle-brackets or not
There are cases where it is necessary to "easily" concatenate strings without making the code unnecessariy more complex
The text was updated successfully, but these errors were encountered: