Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Is it possible to limit yaml formatting to just indentation and preserving empty lines

Open
#1,853 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java, yaml
Domain
tooling

Research direction

Start by reading the linked Spotless pull-request discussion, especially the cited comment, to understand the limitations of Jackson and SneakyYaml. Then locate the YAML formatting entry point in the repository and determine whether indentation-only formatting with preserved empty lines is a defined, testable requirement. Done would mean a concrete implementation path and tests for that behavior.

Written by the indexing model from the issue text.

Description

question

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 https://github.com/diffplug/spotless/pull/1478#issuecomment-1378634351

Thanks!

Dominant language
Java
Stars
5.7k
Forks
560
Avg merge
1d 13h
Merged PRs (30d)
43

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from diffplug/spotless

All issues in diffplug/spotless

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.