Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 1.7 KB

CONTRIBUTING.md

File metadata and controls

35 lines (19 loc) · 1.7 KB

Contributing

Style

This project uses google-java-format with the --aosp flag for code formatting. Please see that project's README for usage instructions.

Command Line

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')

IntelliJ Plugin

If you're using IntelliJ, the plugin can be found here. Be sure to enable it in settings and set the style to AOSP.

2021-10-31T12:39:32,557256036-04:00

Also, make sure you use Ctrl+Alt+Shift+L to open the reformat menu and check the following boxes.

2021-11-03T17:49:26,139580320-04:00

After doing that once, you can format with Ctrl+Alt+L as usual.

Code Coverage

After running gradle build or gradle test, a file containing code coverage details can be found at build/reports/jacoco/test/html/index.html.

Commit Messages

This project uses the Conventional Commits standard, please follow this standard with your commit messages.