Skip to content
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

Merged
merged 1 commit into from
Oct 23, 2019

Conversation

svc-excavator-bot
Copy link
Collaborator

excavator is a bot for automating changes across repositories.

Changes produced by the roomba/latest-baseline-oss check.

Release Notes

2.25.0

Type Description Link
Fix checkstyle Indentation rule is disabled when palantir-java-format is enabled palantir/gradle-baseline#987
Improvement Load palantir-java-format dynamically from the same configuration set up by com.palantir-java-format which is also used to determine the version used by IntelliJ. palantir/gradle-baseline#989

To enable or disable this check, please contact the maintainers of Excavator.

@@ -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[]
Copy link
Contributor

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()));
Copy link
Contributor

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(
Copy link
Contributor

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

Copy link
Contributor

@dansanduleac dansanduleac left a 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

@bulldozer-bot bulldozer-bot bot merged commit 019927e into develop Oct 23, 2019
@bulldozer-bot bulldozer-bot bot deleted the roomba/latest-baseline-oss branch October 23, 2019 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants