Skip to content

Add ability to format java code with a custom google-java-format version#145

Merged
theacodes merged 7 commits into
googleapis:masterfrom
chingor13:java-code-formatter
Nov 21, 2018
Merged

Add ability to format java code with a custom google-java-format version#145
theacodes merged 7 commits into
googleapis:masterfrom
chingor13:java-code-formatter

Conversation

@chingor13

@chingor13 chingor13 commented Nov 20, 2018

Copy link
Copy Markdown
Contributor

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
Comment thread synthtool/languages/java.py Outdated
Comment thread synthtool/languages/java.py Outdated
Comment thread synthtool/languages/java.py Outdated
Comment thread synthtool/languages/java.py Outdated
@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