What is the exact Google Java Format version used by CheckStyle 9.3?

930 views Asked by At

I use Checkstyle 9.3 (because I'm still using JDK 8). I'm wondering what is the exact Google Java Format version used by that Checkstyle version? I'm referring to the following file:

https://github.com/checkstyle/checkstyle/blob/checkstyle-9.3/src/main/resources/google_checks.xml

I tried to figure it out. I see a date on the following page stating "version of 23 May 2018, current as of 07 May 2019". Maybe I missed something.

https://checkstyle.org/google_style.html

I think this is either version 1.6 or 1.7.

This is important to know because I'm using a program to reformat the code automatically, for instance google-java-format. Then I need to know which release to choose here:

https://github.com/google/google-java-format/releases

Thank you

Jonathan

1

There are 1 answers

0
Roman Ivanov On

Checkstyle does not use java google formatter project. Checkstyle use its own logic to validate Google Style. There are tons of unclear items in Google style web page, so interpretation of it is different by each tool.

Checkstyle coverage of style guide https://checkstyle.org/google_style.html There few bugs opened https://github.com/checkstyle/checkstyle/issues?q=is%3Aopen+is%3Aissue+label%3A%22google+style%22