Indentation changes the structure of the data. There is no deterministic way to auto format YAML, you have to make sure, as a human, that everything is at the right indentation level
- something
- a
- b
Is completely different to: - something
- a
- b