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 ability to format java code with a custom google-java-format version #145

Merged
merged 7 commits into from
Nov 21, 2018

Conversation

chingor13
Copy link
Contributor

@chingor13 chingor13 commented Nov 20, 2018

Usage would be something like:

import synthtool.languages.java as java

# ... do some codegen into ./src
java.format_code("./src")

Note the gapic-generator does run version 1.1 of the Google java formatter and this one defaults to 1.6 (most up to date). We can update the one in gapic, but we'd also like the ability to run this on our apiary libraries too.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 20, 2018
@theacodes theacodes merged commit 1c2f2a8 into googleapis:master Nov 21, 2018
@chingor13 chingor13 deleted the java-code-formatter branch November 26, 2018 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants