SVN - interception for fixing code for formatting code

We want to implement pre-commit binding in SVN to check code formatting in jsp / java files. If the submitted files do not transmit recommendations, they should not fix and indicate lines with an error.

How can we do this? Please guide.

+5
source share
1 answer

Information on how to implement interceptors can be found here .

I would start to write a script or select an existing application that checks the code of one * .java file. Since the * .jsp file contains a slightly different syntax, I would like to do the same for the * .jsp files, saving these scripts separately.

script, commit, Bash/Python. script *.java *.jsp.

, : script pre-commit script Subversion.

+3

All Articles