-
Notifications
You must be signed in to change notification settings - Fork 418
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
Support unused import removal with Buildifier #379
Comments
Agree. This is blocked on this Bazel change: bazelbuild/bazel#5636 |
According to https://github.com/bazelbuild/buildtools/blob/master/buildozer/README.md, buildozer has a |
Sweet, I was wondering if it would've made more sense in buildozer. Thanks |
But AFAIK, buildozer only works on BUILD files, not Starlark files, right? How do I detect and remove unused imports in Starlark files? |
You can use buildifier:
|
@vladmos That command didn't do anything for me (version
|
That's weird, could you please share a file that's not being fixed with buildifier? |
It would be nice if Buildifier could support detecting and removing unused load statement imports.
Would definitely be willing to work on this if I could be given some guidance on if this makes conceptual sense in Buildifier, and where in the code a modification like this would happen.
The text was updated successfully, but these errors were encountered: