You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The upshot is that, in order to format BUILD files, buildifier needs to know what type of file it's formatting. This is done with the -type flag, as in:
buildifier -type=build
There are probably several different ways we could go here. We could introduce buildifier_options, but that conflicts with some of the desires expressed in #66. Probably the best way would be for codefmt to decide what flags to pass based on the filename, so we would automatically do the right thing for both .bzl and BUILD files... although, this might not work well for older versions of buildifier!