Skip to content

Conversation

@vesin
Copy link

@vesin vesin commented Apr 12, 2025

No description provided.

cushon and others added 27 commits November 18, 2024 15:55
Check the last line instead of the first line of the text block contents. Empty lines in the text block have no leading whitespace but do not indicate the contents are deindented, only non-empty lines should be considered. The last line will never be empty, it contains at least the close delimiter.

PiperOrigin-RevId: 697785256
PiperOrigin-RevId: 698016480
…a text block

If the last line contains contents other than the closing delimiter, it may have significant leading whitespace. This change prevents that whitespace from being removed.

google#1195

PiperOrigin-RevId: 698939557
PiperOrigin-RevId: 699256809
PiperOrigin-RevId: 704697540
Handle removing trailing whitespace when the closing delimiter is on the same
line as the final line of the text block.

Fixes google#1205

PiperOrigin-RevId: 705218533
JDK 17 is now the minimum supported version.

PiperOrigin-RevId: 705237702
PiperOrigin-RevId: 705324566
See google#1210

PiperOrigin-RevId: 708100474
PiperOrigin-RevId: 738874322
* Don't automatically deindent long text blocks to start at column 0. For text blocks that are already deindented the existing choice will be preserved, but it won't happen automatically.
* For deindented text blocks, put the opening `"""` at column 0 instead of indenting it

PiperOrigin-RevId: 739966701
Manually created Google internal equivalent of public google#1228, just in case it's easier to review here instead of there; quote with rationale for this, from public PR description:

It at first confused the hell out of me why clearly the exact SAME version of google-java-format worked great locally but failed with errors (due to my use of record matching pattern syntax) on a GitHub Action - until I've noticed that it still ran under Java 17 - and that this matters to google-java-format (my naive initial assumption was that only the google-java-format version itself was relevant).

PiperOrigin-RevId: 741076633
More permissions
PiperOrigin-RevId: 741251928
@kwin re. google#1225

@cushon merge?

Fixes google#1235

COPYBARA_INTEGRATE_REVIEW=google#1235 from vorburger:patch-7 38255fa
PiperOrigin-RevId: 741534873
PiperOrigin-RevId: 744065507
This allows the CheckReturnValue analysis to tell that it's a builder and ignore the results of builder methods.

PiperOrigin-RevId: 745341492
PiperOrigin-RevId: 745356200
*** Reason for rollback ***

Breaks test/protobuf.msan [failure]([]

*** Original change description ***

Internal change

PiperOrigin-RevId: 745520292
# Conflicts:
#	core/pom.xml
#	eclipse_plugin/pom.xml
#	eclipse_plugin/src/com/google/googlejavaformat/java/GoogleJavaFormatter.java
#	pom.xml
@vesin vesin merged commit 33e382c into master Apr 12, 2025
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.