This project uses google-java-format
with the --aosp
flag for code formatting. Please see that project's README for usage instructions.
Download the latest -all-deps.jar
version from the project's releases page and place it in a folder where you can find it. Then you can use the following command (from the project root, don't accidentally run this on other folders!) to reformat all files in the project:
java -jar "$PATH_TO_JAR" --aosp -i (find . -name '*.java')
If you're using IntelliJ, the plugin can be found here. Be sure to enable it in settings and set the style to AOSP.
Also, make sure you use Ctrl+Alt+Shift+L to open the reformat menu and check the following boxes.
After doing that once, you can format with Ctrl+Alt+L as usual.
After running gradle build
or gradle test
, a file containing code coverage details can be found at build/reports/jacoco/test/html/index.html
.
This project uses the Conventional Commits standard, please follow this standard with your commit messages.