---
name: yamllint
description: "Use when adopting YAMLlint to assess this standard: Catch ambiguous YAML before parsing"
---

# Apply YAMLlint

Catch repeated keys, invalid indentation and unintended scalar forms. Keep formatting preferences separate in the configuration so diagnostics are easy to interpret.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by YAMLlint.
2. Use YAMLlint in this repository to meet this standard: Catch ambiguous YAML before parsing. Catch repeated keys, invalid indentation and unintended scalar forms. Keep formatting preferences separate in the configuration so diagnostics are easy to interpret. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://yamllint.readthedocs.io/) for configuration and prerequisites.

## Tool invocation

```
yamllint .
```
