Skip to content

Document configuration options in the google-java-format README. - #1519

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1010297908
Nov 2, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_1010297908

Conversation

@copybara-service

Copy link
Copy Markdown

Document configuration options in the google-java-format README.

Add a Configuration section that explains that google-java-format is an opinionated, low-configuration formatter, and documents the options that are available: --style=google|aosp (including what --style=aosp changes, for projects that want 4-space indentation), --max-line-length, and the flags that disable non-whitespace changes (--cleanup=false, import sorting and unused import removal, modifier reordering, long string reflowing, and Javadoc formatting). Point to --help for the full command-line reference.

Add a Configuration section that explains that google-java-format is an opinionated, low-configuration formatter, and documents the options that are available: `--style=google|aosp` (including what `--style=aosp` changes, for projects that want 4-space indentation), `--max-line-length`, and the flags that disable non-whitespace changes (`--cleanup=false`, import sorting and unused import removal, modifier reordering, long string reflowing, and Javadoc formatting). Point to `--help` for the full command-line reference.

PiperOrigin-RevId: 1012011771
@copybara-service
copybara-service Bot merged commit 056a0ac into master Nov 2, 2026
3 of 4 checks passed
@copybara-service
copybara-service Bot deleted the test_1010297908 branch November 2, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant