Skip to content

YAML

Linters

Linter Additional
prettier
YAML_PRETTIER
GitHub stars formatter
yamllint
YAML_YAMLLINT
GitHub stars
v8r
YAML_V8R
GitHub stars

Linted files

  • File extensions:
    • .yml
    • .yaml

Configuration in MegaLinter

Variable Description Default value
YAML_PRE_COMMANDS List of bash commands to run before the linters None
YAML_POST_COMMANDS List of bash commands to run after the linters None
YAML_FILTER_REGEX_INCLUDE Custom regex including filter
YAML_FILTER_REGEX_EXCLUDE Custom regex excluding filter