-
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
Array of hashes one-liner throws a "Indentation of => is not properly aligned" #446
Comments
Some recent changes in alignment code have fixed this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The rewrites param below looks complicated, but it's just a $variable being concatenated with one array of hashes. When writing it this way puppet-lint will throw a Indentation of => is not properly aligned. I use one-liners a lot and and puppet-lint usually lets me do it. This time I wasn't so lucky.
I was curious what
--fix
thinks it should be. It splits it into 2 lines like so:OK, that's not so bad. If that is what it takes to make puppet-lint happy, I'll settle for it.
Another workaround is to put the data into a variable first
The text was updated successfully, but these errors were encountered: