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
Buildifier removes some comments #68
Comments
I'm working on this right now. Actually slight correction, there needs to be an input like [a for b in c
]
[ #comment on the first line of a container with the opening [ or ( or { will be eaten
] for the bug to materialize |
…g of list/d ictionary expressions. Fixes bazelbuild#68 on github
Currently buildifier doesn't allow to make comment on a multiline list, for example:
also it doesn't allow commenting on a function call:
I'm working on this issue and I'd like to remove these restrictions as they seem to be related to the initial problem. Are there any objections / reasons why buildifier is implemented this way? |
Another example of a missing comment:
is formatted to
due to a bug in the printer. |
[ # This line will be eaten by buildifier
# but not this line.
cc_binary(
name = "something_%s_useful" % lang,
)
for lang in li]
The text was updated successfully, but these errors were encountered: