> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Buildifier

> Learn how to install, configure, and use buildifier effectively for Bazel build scripts.

[**Buildifier**](https://github.com/rhysd/actionlint) is a linter for Bazel, Starlark.

You can enable the Buildifier linter with:

```shell theme={null}
trunk check enable buildifier
```

<Frame caption="Buildifier example output">
  <img src="https://mintcdn.com/trunk-4cab4936/WAR0qJ1WO0rtUlqz/assets/code-quality/overview/linters/supported/buildifier.gif?s=b8713ac33efa90e4f3d7e495ebafbe24" alt="buildifier example output" width="1000" height="600" data-path="assets/code-quality/overview/linters/supported/buildifier.gif" />
</Frame>

## 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](../configure-linters#moving-linters) for more info.

## Links

* [Buildifier site](https://github.com/rhysd/actionlint)
* Buildifier Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/buildifier)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
