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

Fixes https://github.com/rodjek/puppet-lint/issues/249 - Variables incorrectly identified as top scope #271

Closed

Conversation

tayzlor
Copy link

@tayzlor tayzlor commented Jun 24, 2014

This affects when parser = future and we are utilising the $foo.each |$var| loops that gives us puppet-lint will throw a warning saying that we are referencing a top scope variable (when in fact we are not).

Not being a puppet-lint pro here, the change i've done seems to circumvent that issue, and i've also added a test for it

rodjek added a commit that referenced this pull request Aug 17, 2014
Adds support for future parser loop local scope blocks that define variables
to the variable_scope check.

Closes #264
Closes #258
Closes #249

/cc #271
@rodjek
Copy link
Owner

rodjek commented Aug 17, 2014

Thanks for the submission but I'm going to close this in favour of #293 which has more complete support (can detect when loop-local variables are referenced outside the block).

@rodjek rodjek closed this Aug 17, 2014
@rodjek rodjek added this to the 1.0.0 milestone Aug 17, 2014
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