GS/BS
← Standards directory
Code quality

YAMLlint.

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.

YAML

Community rubric · v1

The evidence

Evidence coverage4 / 8
4 supported · 4 unresolved

One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.

Latest evidence review ·

  • Definition

    Verified

    The key-duplicates rule rejects repeated keys in a mapping. The quickstart distinguishes that diagnostic from formatting warnings.

    Cited source ↗
  • Measurement

    Verified

    The sample report identifies the file, line, column, severity and rule name for each YAML diagnostic.

    Cited source ↗
  • Conformance

    Unknown

    No reviewed evidence is recorded for this dimension.

    What would demonstrate a violation? Contribute evidence ↗

  • CI enforcement

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can a change trigger a useful check? Contribute evidence ↗

  • Getting started

    Verified

    The quickstart covers installing yamllint, invoking it on one or more YAML files, and reading sample diagnostics by line, column and rule.

    Cited source ↗
  • Real-world adoption

    Verified

    CodeRabbit checks YAML validity on changed .yaml and .yml files with repository policy or profile-specific defaults.

    Cited source ↗
  • Agent guidance

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can an agent act on a specific finding? Contribute evidence ↗

  • Agent portability

    Unknown

    No reviewed evidence is recorded for this dimension.

    Does the practice work in two agent harnesses? Contribute evidence ↗

Use this standard

Run the check with the tool installed and configured for your project.

yamllint .

Agent prompt

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.
Read the agent skill ↗

Primary source

YAMLlint documentation ↗