Re:Write Gitlab CI Pipelines in Python Code
by xdennis on Friday April 30, 2021 @04:58AM
(#26991204)
Proper spacing makes code readable. Forcing it is a good thing.
[ Parent
| on HN ]
It's a good thing, until you ask a non-technical user to edit the config file. Then they become confused because a tab is visually, but not functionally equivalent to a number of spaces.
I wouldnt ask a non-technical person to write any of these config files.
If I want non-technical people to configure something I need to write a GUI for self-serving.
Indeed, it does, when done via something like go fmt. But in the case of YAML, a pedantic level of "proper spacing" is used for logic. 2 or 3 spaces shouldn't change the meaning and order of things