I'm coming round to the view that every project should have a code tidy script to keep formatting consistent.