# bazel-contrib/buildtools

A bazel BUILD file formatter and editor

Repository: https://github.com/bazel-contrib/buildtools
Canonical: https://ross.abutalabs.com/products/buildtools
Language: Go
License: Apache-2.0
License Family: permissive
Topics: bazel, build-tool, formatter
Last push: 2026-08-24T16:36:18+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 68, longevity 100
- inputs: {"age_days": 3737, "days_push": 9, "days_rel": 215, "gap_med": 27.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1189, forks 468 (observed 2026-08-28T04:03:55.830849+00:00)

## What it is
A collection of developer tools for working with Bazel build files, including buildifier for formatting BUILD files, buildozer for command-line editing of them, and unused_deps for finding unneeded Java dependencies. Written in Go and distributed as standalone CLI tools.

## Use cases
- format BUILD files in a standard style
- automatically edit bazel BUILD file dependencies from the command line
- find unused dependencies in java_library rules
- lint bazel build files in CI
- bulk-update bazel targets across a monorepo

## When to choose
- you use Bazel and want consistent, canonical formatting of BUILD files
- you need to programmatically add, remove, or rename dependencies in BUILD files
- you want to enforce build file style in pre-commit hooks or CI

## When to avoid
- your project does not use Bazel
- you need a general-purpose formatter for languages other than Bazel files

## Facets
- artifact type: cli-tool
- maturity: active
- function: formatter, build-tool, linter, cli
- domain: developer-tools
- platform: cli, windows, go
- tags: bazel, buildifier, buildozer, build-files, starlark, command-line, build-tools, linux, macos

## Member repositories
- bazel-contrib/buildtools (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:55.830849+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:23:07.813564+00:00, confidence not recorded.
  - readme: https://github.com/bazel-contrib/buildtools (fetched 2026-08-28T04:03:55.830849+00:00, sha df1e37fcc901)
- Data as of 2026-08-30T08:39:29.467469+00:00.
