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

The hard wrap width is too small

Open
#944 0 comments 6 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
tooling

Research direction

Start by locating the formatter's hard-wrap width implementation and its related tests; the issue does not name files or entry points. Reproduce a case where indentation and long names leave insufficient right-side space, then assess whether a width of 120 is appropriate. Done means the intended width behavior is defined and covered by tests.

Written by the indexing model from the issue text.

Description

  • AOSP style, basic indent is 4.
  • class -> method -> main body,
  • java.util.stream.Stream
  • val name clarity often means long names

Because of the above reasons, the left margin can easily become large, and the right space is not enough to wrap the line.
May 120 be better?

Dominant language
Java
Stars
6.2k
Forks
936
Avg merge
6m
Merged PRs (30d)
3

Getting set up

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 google/google-java-format

All issues in google/google-java-format

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.