I've been looking for this for quite a while myself, but I have nearly no experience with the subject, so I'm just hoping that someone here has come across this before.
Would it be possible to run some kind of a script in SourceTree, which would check the files for some criteria (for example, going through the files checking if "StaticMethodX." is used anywhere and failing the commit attempt if it is?
I'm trying to enforce better coding standards within a team.
Any help is highly appreciated.