Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.27 KB

yamllint.md

File metadata and controls

47 lines (35 loc) · 1.27 KB
title description layout
Trunk | How to run Yamllint
Yamllint is a linter that checks for formatting discrepancies, key-value pair issues, and syntax errors, ensuring your YAML files are syntactically correct.
title description tableOfContents outline pagination
visible
true
visible
visible
true
visible
true
visible
true

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

Links