GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — This adds an AOSP formatter to the Eclipse plugin. by bryanschofield · Pull Request #251 · google/google-java-format Conversation
|
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
go go googlebot |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
CLAs look good, thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We could definitely use this within our team! 👍
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| import com.google.googlejavaformat.FormattingError; | ||
| import com.google.googlejavaformat.Newlines; | ||
| import com.google.googlejavaformat.Op; | ||
| import com.google.googlejavaformat.OpsBuilder; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It seems the imports were reordered according to Eclipse's default ordering, instead of retaining the order specified by the style guide.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| // TODO(cushon): this is only safe because the modifier ordering doesn't | ||
| // affect whitespace, | ||
| // and doesn't change the replacements that are output. This is not true | ||
| // in general for |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Since you reformatted the code, maybe manually fix this section?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * #createSnippetFormatter()} such that the indentation size corresponds with the indent level of | ||
| * the format options used to create the snippet formatter. | ||
| */ | ||
| protected abstract int indentationSize(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🤔 maybe SnippetFormatter#indentationSize() can be made public instead? That does mean a modification to its public API, but since this caller could use it, maybe so can others.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I can make it public, though I tend to prefer more restrictive access until a need arises. That said, I'll make change if you prefer. Please advise.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Well, it seems a need arose ;).
But in all seriousness: I'm not a maintainer of this project, so my advice carries little weight. Let's see what the maintainers say.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for the quick feedback! @Stephan202 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Hi, we just switched our open source project(s) to Google AOSP and a release with this PR merged would be awesome :-) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Any help needed to make this merged? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The branch currently has conflicts.
(GJF is a tremendous time saver; it'd be great to see this tool adopted as widely as possible. Changes such as these definitely help achieve that.) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
An alternative approach would be to pass in the formatter; see google#251.
|
Any update on this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.