2 ms·
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 r
by enlyth 3y ago
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
- bandie91 3y agowhat about stopping the little darf who writes into your files unauthorizedly?
- hk__2 3y agoIt can be deterministically auto-formatted as long as you respect the format, like with everything. If you wrongly indent a line then it’s your fault and the auto-format can’t know if some indent is wrong or not. I don’t see what’s wrong here; it’s like adding a superfluous } in JSON or not closing a tag in XML.
- tom_ 3y agoIt complicates moving stuff around the hierarchy.