Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 527 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 527 Bytes

Buildifier

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

Setup

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 get github.com/bazelbuild/buildtools/buildifier

Usage

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)