Using YAML Formatter: practical guide
Tidy YAML so it parses
A formatter normalises the indentation and spacing of a YAML file so it is easy to read and easier to compare in a code review. It also tells you when the file is not valid YAML.
Common YAML errors
Tabs instead of spaces, inconsistent indentation, a missing space after a colon, and unquoted values that contain special characters are the usual causes. Quote values that start with symbols or that could be read as another type.