-
Notifications
You must be signed in to change notification settings - Fork 208
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
Hash of hashes with long keys causes irrational warnings and crashes --fix #424
Comments
@TomOnTime I am closing this as a duplicate of #416, please re-open it if you feel that is incorrect. |
This is a different issue. The test case still exhibits the same problem with version 2.0.0 By the way... it would be great if the warning output what column was expected for => |
@rnelson0 P.S. I don't see how to re-open the issue. (sorry!) |
This issue is the result of check_whitespaces.rb looking at the length of the previous indent token, then the previous code token, and getting an unexpected value. By adding a debug print statement
When the interpolated value is found, rather than discovering This doesn't fix the issue, but identifies where it is so we can attack it. |
Ensure that interpolated variable delimiters (`${}`) are not ignored when calculating alignment. The `--fix` function remains broken, see #424 for progress on that front.
puppet-lint --fix example.pp
crashes with this code.Without
--fix
you get conflicting requirements. As-is, it gives these warnings:I hacked puppet-lint to expose what alignment it was expecting. When I aligned things that way, it warned me that this alignment was incorrect too. No wonder --fix crashes.
The text was updated successfully, but these errors were encountered: