buildifier
« Back to VersTracker
Description:
Format bazel BUILD files with a standard convention
Type: Formula  |  Latest Version: 8.2.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  @bazelbuild  |  formulae.brew.sh
Category: Developer tools
Tags: bazel formatter build-system linting developer-tools
Install: brew install buildifier
About:
Buildifier is an automated formatting tool for Bazel BUILD, WORKSPACE, and .bzl files. It enforces a consistent coding style and canonical formatting rules defined by the Bazel team. This helps maintain clean, readable, and standardized build files across large projects.
Key Features:
  • Automated formatting of Bazel build files
  • Linting capabilities to detect common issues
  • Support for formatting check mode in CI/CD pipelines
  • Canonical style enforcement as per Bazel standards
Use Cases:
  • Standardizing code style in large Bazel codebases
  • Integrating build file formatting into pre-commit hooks
Alternatives:
  • Buildifier (Go version) – The original implementation; the Homebrew package provides the official release binary.
License: Apache-2.0
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Jan 9, 2025 1:50pm 0 VERSION_BUMP 1d0c2665