You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possible to limit yaml formatting to just indentation and preserving empty lines #1853
Hello,
my question is whether it is possible to limit yaml formatting to just indentation and preserving empty lines. In other words if it's possible to avoid using jackson and sneakyaml, since they have some limitations as mentioned #1478 (comment)
@asomov I believe the only limitation is the lack of contribution around SnakeYAML into Spotless. Such a formatter would circumvent many of current issues around Jackson (even it is based on SnakeYAML).
Activity
blacelle commentedon Sep 10, 2024
Jackson has indeed limitation, amongst which comments removal (#1795).
SnakeYAML might be the way to go for this need. (I suspect indentation-only is not that simple, and preserving empty-lines would be an option).
asomov commentedon Sep 10, 2024
@aldex32 where did you find any SnakeYAML limitations? The above mentioned issue does not contain any limitations for SnakeYAML
blacelle commentedon Sep 10, 2024
https://github.com/google/yamlfmt may also be the way to go to circumvent current Jackson limitations.
@asomov I believe the only limitation is the lack of contribution around SnakeYAML into Spotless. Such a formatter would circumvent many of current issues around Jackson (even it is based on SnakeYAML).