We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 version: 7.3.1
Description
Buildifier is incorrectly removing comments from the top of the build file while trying to fix an unused load statement at the top of the file.
An example BUILD file would have something like:
# some comment load("//:target.bzl", "unused")
When removing the unused load statement, buildifier also removes the comment above it.
The text was updated successfully, but these errors were encountered:
The recommendation is to put an empty line between the comment and the load statement.
Without separating line, the comment is "attached" to the next statement. Buildifier assumes the comment is for the load itself.
Sorry, something went wrong.
No branches or pull requests
buildifier version: 7.3.1
Description
Buildifier is incorrectly removing comments from the top of the build file while trying to fix an unused load statement at the top of the file.
An example BUILD file would have something like:
When removing the unused load statement, buildifier also removes the comment above it.
The text was updated successfully, but these errors were encountered: