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

Add Google and Kotlinlang support to IDEA plugin #183

Closed
wants to merge 1 commit into from
Closed

Add Google and Kotlinlang support to IDEA plugin #183

wants to merge 1 commit into from

Conversation

JavierSegoviaCordoba
Copy link
Contributor

@JavierSegoviaCordoba JavierSegoviaCordoba commented Feb 26, 2021

Now the drop-down has 4 items:

Default, Dropbox, Google and Kotlinlang. Should I delete Dropbox?

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 26, 2021
@JavierSegoviaCordoba JavierSegoviaCordoba changed the title Add Google and Kotlinlang support Add Google and Kotlinlang support to IDEA plugin Feb 26, 2021
Copy link
Contributor

@cgrushko cgrushko left a comment

Choose a reason for hiding this comment

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

Thank you very much for this contribution!
I left some comments, I hope they make sense.
Thanks again!

import java.util.Map;

import static com.facebook.ktfmt.FormatterKt.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please expand to individual imports.

I know that IntelliJ replaces imports to .* automatically and it's very annoying. To turn off, increase "class count to use import" to a large number.

image

Copy link
Contributor Author

@JavierSegoviaCordoba JavierSegoviaCordoba Feb 28, 2021

Choose a reason for hiding this comment

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

I am checking that the order of some imports in multiple files has changed. I was using the Google plugin plus reformat code + optimize imports.

Should I change the order manually?

Copy link
Contributor

Choose a reason for hiding this comment

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

Unfortunately the GJF plugin doesn't sort imports (unclear why). In general, to preserve blame and history it's best not to change anything unrelated to your change.
I'll sort them after importing to our internal repo, our linters will complain anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Spotless does? It has Google format for java.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@cgrushko has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@cgrushko merged this pull request in 5b6edca.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants