buildifier

buildifier is a linter for Bazel, Starlark.

You can enable the buildifier linter with:

trunk check enable buildifier

Auto Enabling

buildifier will be auto-enabled if any Starlark, Bazel-build or Bazel-workspace 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 Linter Configs for more info.

Last updated