> ## 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.

# Yamllint

> Yamllint is a linter that checks for formatting discrepancies, key-value pair issues, and syntax errors, ensuring your YAML files are syntactically correct.

[**Yamllint**](https://github.com/adrienverge/yamllint) is a linter for YAML.

You can enable the Yamllint linter with:

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

## Auto Enabling

Yamllint will be auto-enabled if any *Yaml* files are present.

## Settings

Yamllint supports the following config files:

* `.yamllint`
* `.yamllint.yaml`
* `.yamllint.yml`

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. Trunk Code Quality provides a default `.yamllint.yaml` if your project does not already have one.

## Links

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