Today I have written a small python script for forcing the sun coding conventions in a small project.
For checking the java source code I have used the checkstyle tool.
The following python script uses the git executable for creating a file list of all changed files, latest file revision only, and run checkstyle over it.