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. |
|
Yamllint is a linter for YAML.
You can enable the Yamllint linter with:
trunk check enable yamllint
Yamllint will be auto-enabled if any Yaml files are present.
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.
- Yamllint site
- Yamllint Trunk Code Quality integration source
- Trunk Code Quality's open source plugins repo