phyloref / jphyloref

MIT License
0 stars 0 forks source link

Added Spotless as a code style enforcer #32

Closed gaurav closed 5 years ago

gaurav commented 5 years ago

This PR adds Spotless as a code style enforcer. Spotless can be run with a goal of either spotless:check (which will report violations of the code style) or spotless:apply (which will automatically fix code style violations). This PR integrates a spotless:check into the mvn test command, and activates automatic testing of the code style on Travis CI.

gaurav commented 5 years ago

Yup, it's only whitespace/indentation changes! I think the reason why the Google Java Code Style mandates a default indentation of 2 spaces is so that lines that have more than a 100 characters can be wrapped onto the next line with a 4 space indentation. That works well for me, so I'm going to leave it at a 2 space indent for now, but please do open an issue if you'd like me to increase both those indentations!