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

Try palantir-java-format #599

Closed
wants to merge 3 commits into from
Closed

Try palantir-java-format #599

wants to merge 3 commits into from

Conversation

iamdanfox
Copy link
Contributor

We introduced a way to use the shiny new palantir-java-format here: palantir/gradle-baseline#936. Just dogfooding

It seems like the formatter is occasionally still fighting checkstyle :/

@@ -366,26 +348,21 @@ private boolean isByteBuffer(Type type) {
Type type = enriched.conjureDef().getType();

if (type.accept(TypeVisitor.IS_LIST)) {
return ImmutableList.of(
createCollectionSetter("addAll", enriched),
createItemSetter(enriched, type.accept(TypeVisitor.LIST).getItemType()));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dansanduleac I think the number of parens in createItemSetter(enriched, type.accept(TypeVisitor.LIST).getItemType()) makes it a bit subtle to read when it's re-flowed in the new 'dense' style. Thoughts on having a heuristic that would value having opening and closing pairs of parens on the same line?

@stale
Copy link

stale bot commented Oct 30, 2019

This PR has been automatically marked as stale because it has not been touched in the last 14 days. If you'd like to keep it open, please leave a comment or add the 'long-lived' label, otherwise it'll be closed in 7 days.

@stale stale bot added the stale label Oct 30, 2019
@iamdanfox
Copy link
Contributor Author

Closing out as we should use the official excavator one.

@iamdanfox iamdanfox closed this Oct 30, 2019
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.

1 participant