mirror of https://github.com/tikv/client-java.git
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com> |
||
---|---|---|
.. | ||
README.md | ||
intellij-java-google-style.xml | ||
javafmt | ||
spotbugs-include.xml |
README.md
TiSpark Dev Tools Guide
Formatting
Java Format
TiKV Java Client formats its code using Google-Java-Format Maven Plugin which follows Google's code styleguide. It is also checked on CI before build.
-
In Intellij IDEA
-
you should download the Google-Java-format Plugin via marketplace. Restart IDE, and enable google-java-format by checking the box in
Other Settings
. -
you may also use Java-Google-style xml file and export the schema to Intellij:
Preferences
->Editor
->Code Style
->Import Scheme
->Intellij IDEA Code Style XML
.
-
-
You may also run Java format script before you commit & push to corresponding dev branch.
./dev/javafmt