-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excavator: Upgrades Baseline to the latest version #52
Conversation
@@ -207,8 +207,8 @@ private static FormatterService createFormatter(Optional<List<URI>> implementati | |||
URL[] implementationUrls = implementationClassPath | |||
.map(implementationUris -> { | |||
log.debug("Using palantir-java-format implementation defined by URIs: {}", implementationUris); | |||
return implementationUris.stream().map(PalantirCodeStyleManager::toUrlUnchecked).toArray( | |||
URL[]::new); | |||
return implementationUris.stream().map(PalantirCodeStyleManager::toUrlUnchecked).toArray(URL[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, this one is a bit unfortunate...
tokenRangeSet.add(characterRangeToTokenRange( | ||
characterRange.lowerEndpoint(), characterRange.upperEndpoint() - characterRange.lowerEndpoint())); | ||
tokenRangeSet.add(characterRangeToTokenRange(characterRange.lowerEndpoint(), characterRange.upperEndpoint() | ||
- characterRange.lowerEndpoint())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think having set BREAK_HERE on the levels containing binary operators might have been a bit of a mistake.
We only really want to inline things like the first string argument in a long string concatenation. We should probably limit it to just that.
" }", | ||
"}"); | ||
String input = Joiner.on('\n') | ||
.join( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
floating method call could be inlined on the first line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
except for a few regressions, this fixes more nasty stuff like 0-indent continuations and other ugliness, so let's get this in
excavator is a bot for automating changes across repositories.
Changes produced by the roomba/latest-baseline-oss check.
Release Notes
2.25.0
com.palantir-java-format
which is also used to determine the version used by IntelliJ.To enable or disable this check, please contact the maintainers of Excavator.