ministryofjustice / development-standards-alpha

Code standards for new probation services
Other
0 stars 1 forks source link

Add a java language standard #2

Closed MatMoore closed 4 years ago

MatMoore commented 4 years ago

This is a first stab at putting together some common guidance for java teams at the MOJ.

It's heavily based on the GDS way guidance.

We've made the following changes:

MatMoore commented 4 years ago

https://ncrcoe.gitbooks.io/java-for-small-teams/specifics.html also has some good advice that's a bit more high level than the google style guide, but I didn't think it worth going into that much detail in our guidance, otherwise it will get quite long.

MatMoore commented 4 years ago

Have moved a lot of that code style into the linting rules page, which cuts down on a lot of duplication.

I spent about half an hour trying to get checkstyle to use built in configuration files, but I couldn't figure out how to make it work with the gradle plugin. According to this post it can be done but I gave up and just documented the method we've got working instead.