Yamllint

Yamllint is a linter for YAML.

You can enable the Yamllint linter with:

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 Linter Configs for more info. Trunk check provides a default .yamllint.yaml if your project does not already have one.

Last updated