Jump to content

Pre-Checkin Process/Cancel


Recommended Posts

Is it at all possible to prevent check-ins based on running an external process? For example I don't want to allow a check-in of code that was not formatted with our company's standard (and we have different standards for different languages). I know I can check these in most CI servers during build (with optional plugins, StyleCop, etc.), but I don't want to allow a build failure if I can prevent it up-front.


My thought process is something like:


Check-In attempt

Run one or more executables to validate code files

On any failure, do not check-in

otherwise allow check-in





Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...