-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add Google and Kotlinlang support to IDEA plugin #183
Conversation
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.
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.*; |
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.
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 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?
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.
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.
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.
Spotless does? It has Google format for java.
ktfmt_idea_plugin/src/main/java/com/facebook/ktfmt/intellij/FormatterUtil.java
Outdated
Show resolved
Hide resolved
ktfmt_idea_plugin/src/main/java/com/facebook/ktfmt/intellij/FormatterUtil.java
Outdated
Show resolved
Hide resolved
ktfmt_idea_plugin/src/main/java/com/facebook/ktfmt/intellij/KtfmtConfigurable.java
Outdated
Show resolved
Hide resolved
ktfmt_idea_plugin/src/main/java/com/facebook/ktfmt/intellij/UiFormatterStyle.java
Show resolved
Hide resolved
ktfmt_idea_plugin/src/main/java/com/facebook/ktfmt/intellij/UiFormatterStyle.java
Outdated
Show resolved
Hide resolved
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.
@cgrushko has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Now the drop-down has 4 items:
Default, Dropbox, Google and Kotlinlang. Should I delete Dropbox?