Use a project-specific lint profile.
Section: Linting and safe edits
Run yamllint with a custom config
bash
bash
yamllint -d '{extends: default, rules: {line-length: disable}}' config.yamlExplanation
Helpful when you want structural checks without enforcing every style rule.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Linting and safe edits
Reveal hidden whitespace
Print tabs and line endings to spot indentation issues.
Format YAML with Prettier
Normalize indentation and layout automatically.
Mixed indentation example
Illustrate a broken file caused by inconsistent nesting.