A BUILD file formatter
Go Yacc Python Protocol Buffer
Latest commit 7679b82 Jan 17, 2017 @vladmos vladmos committed with pmbethe09 Update rules_go to 0.4.0 (#38)
* Update rules_go to 0.4.0



buildifier is a tool for formatting bazel BUILD files with a standard convention.


Build the tool:

  • Checkout the repo and then either via go install or bazel build //buildifier
  • If you already have 'go' installed, then build a binary via:

go install github.com/bazelbuild/buildifier/buildifier


Use buildifier to create standardized formatting for BUILD files in the same way that clang-format is used for source files.

$ buildifier -showlog -mode=check $(find . -iname BUILD -type f)