Skip to content

Files

Latest commit

56d732c · Oct 17, 2024

History

History
46 lines (33 loc) · 1.19 KB

buildifier.md

File metadata and controls

46 lines (33 loc) · 1.19 KB
description title layout
Learn how to install, configure, and use buildifier effectively for Bazel build scripts.
Trunk | How to run Buildifier
title description tableOfContents outline pagination
visible
true
visible
visible
true
visible
true
visible
true

Buildifier

Buildifier is a linter for Bazel, Starlark.

You can enable the Buildifier linter with:

trunk check enable buildifier

buildifier example output

Auto Enabling

Buildifier will be auto-enabled if any Bazel or Starlark files are present.

Settings

Buildifier supports the following config files:

  • .buildifier.json
  • .buildifier-tables.json

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linters for more info.

Links